mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-18 10:04:20 +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
|
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
|
# The profile must be also applied if using the profile
|
||||||
# for the whole VG - any LVs inherit this profile then.
|
# for the whole VG - any LVs inherit this profile then.
|
||||||
vgcreate --profile thin-performance $vg "$dev1"
|
vgcreate --profile thin-performance $vg "$dev1"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user