mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
tests: skip stray testing on real dev dir
Do not modify /dev dir maintained by udev.
This commit is contained in:
parent
a126dde069
commit
afd43a75f2
@ -18,6 +18,9 @@ SKIP_WITH_LVMPOLLD=1
|
|||||||
aux prepare_devs 3
|
aux prepare_devs 3
|
||||||
get_devs
|
get_devs
|
||||||
|
|
||||||
|
# Avoid manipulation with real /dev dir
|
||||||
|
test "$DM_DEV_DIR" = "/dev" && skip "Skipping stray test on real /dev dir"
|
||||||
|
|
||||||
cp -r "$dev1" "$DM_DEV_DIR/stray"
|
cp -r "$dev1" "$DM_DEV_DIR/stray"
|
||||||
|
|
||||||
vgcreate $SHARED "$vg" "${DEVICES[@]}"
|
vgcreate $SHARED "$vg" "${DEVICES[@]}"
|
||||||
@ -29,3 +32,5 @@ aux disable_dev "$dev1"
|
|||||||
pvscan
|
pvscan
|
||||||
vgreduce --removemissing --force $vg
|
vgreduce --removemissing --force $vg
|
||||||
aux enable_dev "$dev1"
|
aux enable_dev "$dev1"
|
||||||
|
|
||||||
|
rm -f "$DM_DEV_DIR/stray"
|
||||||
|
Loading…
Reference in New Issue
Block a user