1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +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:
Zdenek Kabelac 2015-10-01 16:45:14 +02:00
parent 05e7fdd5ce
commit 4c2cc782aa

View File

@ -58,9 +58,17 @@ dmsetup resume $vg1-snap
# Try how force removal works
dmsetup suspend $vg-$lv1
# 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
wait
# check it really is now 'error' target
dmsetup table $vg1-snap | tee out
grep error out