diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2015-06-24 13:21:21 +0200 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2015-06-24 15:19:53 +0200 |
commit | 44c7bc0262b6719efe75ecb6eb32eaab359e5779 (patch) | |
tree | cb1f4e5712c27e587f8e11e733057f89d5f3778d | |
parent | e217873ed6ef7d77974fa10bfee4609160d7091d (diff) | |
download | lvm2-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.sh | 5 |
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" |