1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-03 05:18:29 +03:00

tests: wait between remount

Let's see if this help with some races...
This commit is contained in:
Zdenek Kabelac 2015-04-30 13:43:31 +02:00
parent 4daede06e5
commit 0480b4743a

View File

@ -24,9 +24,11 @@ test_snapshot_mount() {
mount "$(lvdev_ $vg $lv1)" test_mnt mount "$(lvdev_ $vg $lv1)" test_mnt
lvcreate -L4M -n $lv2 -s $vg/$lv1 lvcreate -L4M -n $lv2 -s $vg/$lv1
umount test_mnt umount test_mnt
aux udev_wait
# mount the origin # mount the origin
mount "$(lvdev_ $vg $lv1)" test_mnt mount "$(lvdev_ $vg $lv1)" test_mnt
umount test_mnt umount test_mnt
aux udev_wait
# mount the snapshot # mount the snapshot
mount "$(lvdev_ $vg $lv2)" test_mnt mount "$(lvdev_ $vg $lv2)" test_mnt
umount test_mnt umount test_mnt