diff --git a/test/lib/aux.sh b/test/lib/aux.sh index 9ad628169..6f671855d 100644 --- a/test/lib/aux.sh +++ b/test/lib/aux.sh @@ -62,7 +62,7 @@ prepare_dmeventd() { teardown_devs() { # Delete any remaining dm/udev semaphores - dmsetup udevcomplete_all -y + teardown_udev_cookies test -n "$PREFIX" && { rm -rf $TESTDIR/dev/$PREFIX* diff --git a/test/lib/utils.sh b/test/lib/utils.sh index ee04fa2d6..b2a7af6eb 100644 --- a/test/lib/utils.sh +++ b/test/lib/utils.sh @@ -147,6 +147,12 @@ finish_udev_transaction() { fi } +teardown_udev_cookies() { + if test "$DM_UDEV_SYNCHRONISATION" = 1; then + dmsetup udevcomplete_all -y + fi +} + skip() { touch SKIP_THIS_TEST exit 200