[lvm-devel] master - tests: wait between remount

Zdenek Kabelac zkabelac at fedoraproject.org
Fri May 1 13:08:29 UTC 2015


Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=0480b4743a77c166390f50561e8bcdb68214d4ba
Commit:        0480b4743a77c166390f50561e8bcdb68214d4ba
Parent:        4daede06e50bc87e7d5e0b9645e239a9fb03adc0
Author:        Zdenek Kabelac <zkabelac at redhat.com>
AuthorDate:    Thu Apr 30 13:43:31 2015 +0200
Committer:     Zdenek Kabelac <zkabelac at redhat.com>
CommitterDate: Fri May 1 15:07:58 2015 +0200

tests: wait between remount

Let's see if this help with some races...
---
 test/shell/topology-support.sh |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/test/shell/topology-support.sh b/test/shell/topology-support.sh
index c186814..f465ab7 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




More information about the lvm-devel mailing list