master - tests: ensure test will not block
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=4c2cc782aa8c7e6bdc18339215f65e82ea1489ae Commit: 4c2cc782aa8c7e6bdc18339215f65e82ea1489ae Parent: 05e7fdd5ce3eb5db827aa8b8ab9e07571d9a857a Author: Zdenek Kabelac <[email protected]> AuthorDate: Thu Oct 1 16:45:14 2015 +0200 Committer: Zdenek Kabelac <[email protected]> CommitterDate: Thu Oct 1 16:45:14 2015 +0200
tests: ensure test will not block
This test is somewhat 'stupid' and simulates mostly unsupported situation - so avoid blocking here.
--- test/shell/snapshot-remove-dmsetup.sh | 10 +++++++++- 1 files changed, 9 insertions(+), 1 deletions(-)
test/shell/snapshot-remove-dmsetup.sh +9 -1
@@ -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