summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2015-06-24 13:21:21 +0200
committerZdenek Kabelac <zkabelac@redhat.com>2015-06-24 15:19:53 +0200
commit44c7bc0262b6719efe75ecb6eb32eaab359e5779 (patch)
treecb1f4e5712c27e587f8e11e733057f89d5f3778d
parente217873ed6ef7d77974fa10bfee4609160d7091d (diff)
downloadlvm2-44c7bc0262b6719efe75ecb6eb32eaab359e5779.tar.gz
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.
-rw-r--r--test/shell/profiles-thin.sh5
1 files changed, 5 insertions, 0 deletions
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"