From 44c7bc0262b6719efe75ecb6eb32eaab359e5779 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Wed, 24 Jun 2015 13:21:21 +0200 Subject: [PATCH] tests: workaround udev problem If udev has not removed 'dir' entry - just issue TEST WARNING, clear dir, but do not fail whole rest of test. --- test/shell/profiles-thin.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/shell/profiles-thin.sh b/test/shell/profiles-thin.sh index 0c7fb6157..5940cc6d2 100644 --- a/test/shell/profiles-thin.sh +++ b/test/shell/profiles-thin.sh @@ -59,6 +59,11 @@ check lv_field $vg/pool_performance zero "" vgremove -ff $vg +if test -d "$DM_DEV_DIR/$vg" ; then + should not echo "Udev has left \"$DM_DEV_DIR/$vg\"!" + rm -rf "$DM_DEV_DIR/$vg" +fi + # The profile must be also applied if using the profile # for the whole VG - any LVs inherit this profile then. vgcreate --profile thin-performance $vg "$dev1" -- 2.43.5