From f1fecf5fb3ff34945bbacd0b4806bc57b9ddc355 Mon Sep 17 00:00:00 2001 From: Atin Mukherjee Date: Fri, 12 Sep 2014 13:06:57 +0530 Subject: 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. Change-Id: I8686f144ed298124074f749e75c13028ec00be01 BUG: 1092850 Signed-off-by: Atin Mukherjee Reviewed-on: http://review.gluster.org/8703 Tested-by: Gluster Build System Reviewed-by: Justin Clift Reviewed-by: Xavier Hernandez Reviewed-by: Vijay Bellur --- tests/include.rc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/include.rc b/tests/include.rc index 64a9d34dc99..98c449387e5 100644 --- a/tests/include.rc +++ b/tests/include.rc @@ -409,6 +409,9 @@ function cleanup() rm -rf $GLUSTERD_WORKDIR/* $B0/* /etc/glusterd/*; fi + # 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; -- cgit