mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
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.
This commit is contained in:
parent
e217873ed6
commit
44c7bc0262
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user