summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVijay Bellur <vbellur@redhat.com>2013-05-15 15:30:33 +0530
committerAnand Avati <avati@redhat.com>2013-05-15 17:31:55 -0700
commit3c34e97027ec614582559ac65c530eb290cfa7c9 (patch)
tree1d08313f30243e0de44c2c3f079de92072694c09
parente6b4c04709a14bff0379ccfc414b8feec35f78fa (diff)
tests: Ensure portmap registration before nfs mount.
Change-Id: I12a660a7dfbe4a2d0428910d762434043395fe02 BUG: 927616 Signed-off-by: Vijay Bellur <vbellur@redhat.com> Reviewed-on: http://review.gluster.org/5010 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Anand Avati <avati@redhat.com>
-rwxr-xr-xtests/bugs/bug-887145.t7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/bugs/bug-887145.t b/tests/bugs/bug-887145.t
index 8e5f039006c..6758ace4001 100755
--- a/tests/bugs/bug-887145.t
+++ b/tests/bugs/bug-887145.t
@@ -4,6 +4,11 @@
cleanup;
+function is_nfs_export_available {
+exp=$(showmount -e | grep $V0 | wc -l)
+echo "$exp"
+}
+
TEST glusterd
TEST pidof glusterd
TEST $CLI volume create $V0 replica 2 $H0:$B0/${V0}{1,2};
@@ -14,7 +19,7 @@ sleep 2;
## Mount FUSE with caching disabled
TEST glusterfs --entry-timeout=0 --attribute-timeout=0 -s $H0 --volfile-id $V0 $M0;
-sleep 2;
+EXPECT_WITHIN 10 "1" is_nfs_export_available;
TEST mount -t nfs -o vers=3,nolock $H0:/$V0 $N0;