summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAtin Mukherjee <amukherj@redhat.com>2014-09-12 13:06:57 +0530
committerVijay Bellur <vbellur@redhat.com>2014-09-13 10:34:19 -0700
commit58e807c2c80c16af539b0472af43b666ec3c2d08 (patch)
tree1d252b980963cce1b4581060676548574937515d /tests
parent5b6ebde7fade37d2c261898ccc917abf16cc520a (diff)
test: cleanup should clean all left over (stale) mounts
This is a temporary work around to fix the spurious failures seen in ec testcases. As per the initial analysis it looks like quota (glusterd_quota_initiate_fs_crawl) is causing a mount point in /tmp to be stale. Once the root cause is identified this fix can be reverted as well. Backport of http://review.gluster.org/#/c/8703/ Change-Id: I8686f144ed298124074f749e75c13028ec00be01 BUG: 1141187 Signed-off-by: Atin Mukherjee <amukherj@redhat.com> Reviewed-on: http://review.gluster.org/8703 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Justin Clift <justin@gluster.org> Reviewed-by: Xavier Hernandez <xhernandez@datalab.es> Reviewed-by: Vijay Bellur <vbellur@redhat.com> Reviewed-on: http://review.gluster.org/8708
Diffstat (limited to 'tests')
-rw-r--r--tests/include.rc11
1 files changed, 7 insertions, 4 deletions
diff --git a/tests/include.rc b/tests/include.rc
index 1beac4f8acd..9926c28e677 100644
--- a/tests/include.rc
+++ b/tests/include.rc
@@ -270,10 +270,13 @@ function cleanup()
rm -rf $GLUSTERD_WORKDIR/* $B0/* /etc/glusterd/*;
fi
- umount -l $M0 2>/dev/null || true;
- umount -l $M1 2>/dev/null || true;
- umount -l $N0 2>/dev/null || true;
- umount -l $N1 2>/dev/null || true;
+ # unmount all stale mounts from /tmp, This is a temporary work around
+ # till the stale mount in /tmp is found.
+ umount -l /tmp/mnt* 2>/dev/null
+ umount -l $M0 2>/dev/null || umount -f $M0 2>/dev/null || true;
+ umount -l $M1 2>/dev/null || umount -f $M1 2>/dev/null || true;
+ umount -l $N0 2>/dev/null || umount -f $N0 2>/dev/null || true;
+ umount -l $N1 2>/dev/null || umount -f $N1 2>/dev/null || true;
}