Fix hwtable test after "libmultipath: don't bother to recheck timeout"
PATCH 1/1 Fix hwtable test after "libmultipath: don't bother to recheck timeout"
From: Martin Wilck <[email protected]>
The previous patch "libmultipath: don't bother to recheck timeout" causes sysfs_get_timeout() to be called less frequently. Adapt the tests.
Signed-off-by Martin Wilck <[email protected]>
--- tests/test-lib.c | 6 ------ 1 file changed, 6 deletions(-)
tests/test-lib.c +0 -6
@@ -342,12 +342,6 @@ void mock_pathinfo(int mask, const struct mocked_path *mp) mp->wwid); } -if (mask &DI_CHECKER ) { -/* get_state -> sysfs_get_timeout */ -will_return (__wrap_udev_device_get_subsystem,"scsi" ); -will_return (__wrap_udev_device_get_sysattr_value,"180" ); - } -if (mask &DI_PRIO && mp->flags &NEED_SELECT_PRIO ) {/* sysfs_get_timeout, again (!?) */
Signature · 6 lines
2.41.0 -- dm-devel mailing list [email protected] https://listman.redhat.com/mailman/listinfo/dm-devel
Quoted 6 lines · On Fri, Sep 01, 2023 at 11:24:39PM +0200, [email protected] wrote:
From: Martin Wilck <[email protected]>
The previous patch "libmultipath: don't bother to recheck timeout" causes
sysfs_get_timeout()to be called less frequently. Adapt the tests.
Oops.
Reviewed-by Benjamin Marzinski <[email protected]>
Quoted 24 lines
Signed-off-by Martin Wilck <[email protected]>--- tests/test-lib.c | 6 ------ 1 file changed, 6 deletions(-)tests/test-lib.c +0
-6@@ -342,12 +342,6 @@ void mock_pathinfo(int mask, const struct mocked_path *mp) mp->wwid); } -if (mask &DI_CHECKER ) { -/* get_state -> sysfs_get_timeout */ -will_return (__wrap_udev_device_get_subsystem,"scsi" ); -will_return (__wrap_udev_device_get_sysattr_value,"180" ); - } -if (mask &DI_PRIO && mp->flags &NEED_SELECT_PRIO ) {/* sysfs_get_timeout, again (!?) */ Signature · 1 line
2.41.0
--
dm-devel mailing list
[email protected]
https://listman.redhat.com/mailman/listinfo/dm-devel