From 750fc2e876f49d48e8f883e4e342338b8c4676cd Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Wed, 14 Mar 2018 11:23:14 +0100 Subject: [PATCH] tests: fix running tests on systems without udevd Variable was unbound on systems without running udevd. --- test/lib/utils.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/lib/utils.sh b/test/lib/utils.sh index a1f7a0125..b6c2ab078 100644 --- a/test/lib/utils.sh +++ b/test/lib/utils.sh @@ -209,8 +209,8 @@ init_udev_transaction() { } finish_udev_transaction() { - if test "$DM_UDEV_SYNCHRONISATION" = 1 && test -n "$DM_UDEV_COOKIE" ; then - dmsetup udevreleasecookie + if test "$DM_UDEV_SYNCHRONISATION" = 1 && test -n "${DM_UDEV_COOKIE-}" ; then + dmsetup udevreleasecookie || true unset DM_UDEV_COOKIE fi } -- 2.43.5