aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2017-01-09 14:38:18 +0100
committerEryu Guan <eguan@redhat.com>2017-01-15 13:56:45 +0800
commit1abe96278d4a540acc9680fa37f8aaacbdd2bdec (patch)
treecc0d5ae245c4569008a1009c50d99f88f0817fde
parentef00dbcf53346e576a973127486f723c248fd1c9 (diff)
downloadxfstests-dev-1abe96278d4a540acc9680fa37f8aaacbdd2bdec.tar.gz
generic/081: hack around the lvm unmount race
This is butt ugly, but I see no better way than to wait a bit to work around the race between the weird umount in LVM, and the mount ismounted checks. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Brian Foster <bfoster@redhat.com> Signed-off-by: Eryu Guan <eguan@redhat.com>
-rwxr-xr-xtests/generic/0812
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/generic/081 b/tests/generic/081
index 11755d4d89..426766d9bd 100755
--- a/tests/generic/081
+++ b/tests/generic/081
@@ -35,6 +35,8 @@ _cleanup()
cd /
rm -f $tmp.*
# lvm may have umounted it on I/O error, but in case it does not
+ # wait a bit for lvm to settle, sigh..
+ sleep 2
$UMOUNT_PROG $mnt >/dev/null 2>&1
$LVM_PROG vgremove -f $vgname >>$seqres.full 2>&1
$LVM_PROG pvremove -f $SCRATCH_DEV >>$seqres.full 2>&1