summaryrefslogtreecommitdiffstats
path: root/tests/basic/quota.t
diff options
context:
space:
mode:
authorjiffin <jthottan@redhat.com>2014-10-30 15:58:56 +0530
committerNiels de Vos <ndevos@redhat.com>2014-10-31 01:14:03 -0700
commita718a11a1c21c1f74460b61c98579db4ae2747ac (patch)
tree4d15610d38053bc9ad204c3a1fac93036a3f414a /tests/basic/quota.t
parent4120e8a47a6d9b8cb3e4bf6f8ede6d26667fb673 (diff)
gNFS : mount fails if connection to brick(s) is not established yet.
Connection between gluster-nfs and brick process requires time (especially for rdma).During that time when we try to mount using nfs ,it will fail saying that volume not found. So we need a check using 'is_nfs_export_available'before mounting to ensure volume is available.This patch will provide the check before nfs mount if it is not given in the test files Change-Id: I242eb6e3118ebaca1df46314302a203a0c9738a8 BUG: 1158831 Signed-off-by: jiffin tony thottan <jthottan@redhat.com> Reviewed-on: http://review.gluster.org/9011 Reviewed-by: Meghana M <mmadhusu@redhat.com> Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Niels de Vos <ndevos@redhat.com>
Diffstat (limited to 'tests/basic/quota.t')
-rwxr-xr-xtests/basic/quota.t3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/basic/quota.t b/tests/basic/quota.t
index 89489b3951b..f4bcfdc0267 100755
--- a/tests/basic/quota.t
+++ b/tests/basic/quota.t
@@ -99,6 +99,9 @@ EXPECT_WITHIN $MARKER_UPDATE_TIMEOUT "0Bytes" usage "/test_dir"
# though this may change.
## -----------------------------
+##Wait for connection establishment between nfs server and brick process
+EXPECT_WITHIN $NFS_EXPORT_TIMEOUT "1" is_nfs_export_available;
+
TEST mount_nfs $H0:/$V0 $N0 nolock;
TEST $CLI volume quota $V0 limit-usage /test_dir 100MB