summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKotresh HR <khiremat@redhat.com>2016-07-27 15:58:35 +0530
committerVenky Shankar <vshankar@redhat.com>2016-08-09 22:15:34 -0700
commit547b0b8256994e9ca3eda1e1f776cabbbc51f273 (patch)
tree8c808275b73228526ed4592882a6cd39cc4a759d
parentcc55ecc217032c6412ef6a0de0bc78ae9a4b7d15 (diff)
tests: Fix tests/bitrot/bug-1244613.t
Backport of http://review.gluster.org/15028 Wait for gluster nfs to initialize before attempting the nfs mount. Change-Id: I4bd9579ad5368935cf62632a5d612f89fce5979f BUG: 1362059 Signed-off-by: Kotresh HR <khiremat@redhat.com> (cherry picked from commit ae4f59f929be36b40c9f8e20804b6bc4564cc7a3) Reviewed-on: http://review.gluster.org/15059 Smoke: Gluster Build System <jenkins@build.gluster.org> NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> CentOS-regression: Gluster Build System <jenkins@build.gluster.org> Reviewed-by: Venky Shankar <vshankar@redhat.com>
-rw-r--r--tests/bitrot/bug-1244613.t3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/bitrot/bug-1244613.t b/tests/bitrot/bug-1244613.t
index 000a1d3..4996d25 100644
--- a/tests/bitrot/bug-1244613.t
+++ b/tests/bitrot/bug-1244613.t
@@ -40,6 +40,9 @@ TEST $CLI volume set $V0 performance.nfs.write-behind off
TEST $CLI volume start $V0;
EXPECT 'Started' volinfo_field $V0 'Status';
+## Wait for gluster nfs to come up
+EXPECT_WITHIN $NFS_EXPORT_TIMEOUT "1" is_nfs_export_available
+
TEST mount_nfs $H0:/$V0 $N0;
deep=/0/1/2/3/4/5/6/7/8/9
TEST mkdir -p $N0/$deep