mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
tests: ensure test will not block
This test is somewhat 'stupid' and simulates mostly unsupported situation - so avoid blocking here.
This commit is contained in:
parent
05e7fdd5ce
commit
4c2cc782aa
@ -58,9 +58,17 @@ dmsetup resume $vg1-snap
|
|||||||
# Try how force removal works
|
# Try how force removal works
|
||||||
dmsetup suspend $vg-$lv1
|
dmsetup suspend $vg-$lv1
|
||||||
# needs to fail as device is still open
|
# needs to fail as device is still open
|
||||||
not dmsetup remove --force $vg1-snap
|
not dmsetup remove --force $vg1-snap &
|
||||||
|
|
||||||
|
sleep .5
|
||||||
|
|
||||||
|
dmsetup table $vg1-snap | tee out
|
||||||
|
should grep -i error out
|
||||||
|
|
||||||
dmsetup resume $vg-$lv1
|
dmsetup resume $vg-$lv1
|
||||||
|
|
||||||
|
wait
|
||||||
|
|
||||||
# check it really is now 'error' target
|
# check it really is now 'error' target
|
||||||
dmsetup table $vg1-snap | tee out
|
dmsetup table $vg1-snap | tee out
|
||||||
grep error out
|
grep error out
|
||||||
|
Loading…
Reference in New Issue
Block a user