summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2015-04-30 13:43:31 +0200
committerZdenek Kabelac <zkabelac@redhat.com>2015-05-01 15:07:58 +0200
commit0480b4743a77c166390f50561e8bcdb68214d4ba (patch)
tree9e63a875b44a2c7c431b04a3163eb1ac67721f66
parent4daede06e50bc87e7d5e0b9645e239a9fb03adc0 (diff)
downloadlvm2-0480b4743a77c166390f50561e8bcdb68214d4ba.tar.gz
tests: wait between remount
Let's see if this help with some races...
-rw-r--r--test/shell/topology-support.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/shell/topology-support.sh b/test/shell/topology-support.sh
index c1868146b..f465ab7fe 100644
--- a/test/shell/topology-support.sh
+++ b/test/shell/topology-support.sh
@@ -24,9 +24,11 @@ test_snapshot_mount() {
mount "$(lvdev_ $vg $lv1)" test_mnt
lvcreate -L4M -n $lv2 -s $vg/$lv1
umount test_mnt
+ aux udev_wait
# mount the origin
mount "$(lvdev_ $vg $lv1)" test_mnt
umount test_mnt
+ aux udev_wait
# mount the snapshot
mount "$(lvdev_ $vg $lv2)" test_mnt
umount test_mnt