summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvmallika <vmallika@redhat.com>2015-11-06 13:17:26 +0530
committerDan Lambright <dlambrig@redhat.com>2015-11-06 12:28:02 -0800
commit20a227345d4343a0e2f77ed4a4774f195860c7d5 (patch)
tree04e53f0222554e74fd56b828eaf5f1dc385018d5
parent1d0402b25aa24e2076fb79cbeb4ba3ed3a9f3ede (diff)
quota: fix for spurious failure
Filed a bug# 1278689. For now marking the testcase tests/bugs/quota/bug-1235182.t' bad once the bug# 1278689, remove the testcase from bad list Change-Id: I224f907153d3e5f35834007a40b0050246d8787a BUG: 1278689 Signed-off-by: vmallika <vmallika@redhat.com> Reviewed-on: http://review.gluster.org/12526 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Dan Lambright <dlambrig@redhat.com> Tested-by: Dan Lambright <dlambrig@redhat.com>
-rwxr-xr-xrun-tests.sh1
-rw-r--r--tests/bugs/quota/bug-1235182.t3
2 files changed, 4 insertions, 0 deletions
diff --git a/run-tests.sh b/run-tests.sh
index 91ba5c0bcd6..01ffa5b6f10 100755
--- a/run-tests.sh
+++ b/run-tests.sh
@@ -194,6 +194,7 @@ function is_bad_test ()
{
local name=$1
for bt in ./tests/basic/quota-anon-fd-nfs.t \
+ ./tests/bugs/quota/bug-1235182.t \
./tests/basic/mount-nfs-auth.t \
./tests/basic/quota-nfs.t \
./tests/basic/tier/tier_lookup_heal.t \
diff --git a/tests/bugs/quota/bug-1235182.t b/tests/bugs/quota/bug-1235182.t
index 2f963e664c6..4b0f4f4521d 100644
--- a/tests/bugs/quota/bug-1235182.t
+++ b/tests/bugs/quota/bug-1235182.t
@@ -44,12 +44,15 @@ for i in {1..50}; do
#rename to different dir
TEST_IN_LOOP mkdir $M0/$ii
TEST_IN_LOOP mv -f $M0/$i/f$ii $M0/$ii/f$ii;
+ stat $M0/$ii/f$ii >/dev/null
done
echo "Wait for process with pid $PID to complete"
wait $PID
echo "Process with pid $PID finished"
+EXPECT_WITHIN $PROCESS_UP_TIMEOUT "0" STAT $M0/51/f51
+
EXPECT_WITHIN $MARKER_UPDATE_TIMEOUT "100.0MB" quotausage "/"
TEST $CLI volume stop $V0