summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2015-09-21 22:44:43 +0200
committerZdenek Kabelac <zkabelac@redhat.com>2015-09-22 00:08:45 +0200
commit47f623d64b6432fbb3533cb72132c947eeb01941 (patch)
treeffa5d5525e4dd0ff5d38951050b10ad43f9aff72
parent7e63364529e563cf7609875f6aca10303c03883e (diff)
downloadlvm2-47f623d64b6432fbb3533cb72132c947eeb01941.tar.gz
tests: update removal test
Test is currently checking a very non-standard use case. Make it a more resistent against being blocked in kernel.
-rw-r--r--test/shell/snapshot-remove-dmsetup.sh10
1 files changed, 9 insertions, 1 deletions
diff --git a/test/shell/snapshot-remove-dmsetup.sh b/test/shell/snapshot-remove-dmsetup.sh
index b5aad1f95..610d3c2df 100644
--- a/test/shell/snapshot-remove-dmsetup.sh
+++ b/test/shell/snapshot-remove-dmsetup.sh
@@ -34,11 +34,19 @@ mkfs.ext2 "$DM_DEV_DIR/$vg1/snap"
mkdir mnt
mount -o errors=remount-ro "$DM_DEV_DIR/$vg1/snap" mnt
+sync
+
# intetionally suspend layer bellow
dmsetup suspend $vg-$lv1
# now this should pass without blocking
-dmsetup suspend --noflush --nolockfs $vg1-snap
+#dmsetup suspend --noflush --nolockfs $vg1-snap &
+dmsetup suspend $vg1-snap &
+
+sleep .5
+
+dmsetup info --noheadings -c -o suspended $vg1-snap | tee out
+should grep -i suspend out
# unlock device below
dmsetup resume $vg-$lv1