diff options
author | Vijay Bellur <vbellur@redhat.com> | 2013-05-15 15:30:33 +0530 |
---|---|---|
committer | Anand Avati <avati@redhat.com> | 2013-05-15 17:31:35 -0700 |
commit | 845aeb709e0e7e037a5b5afc7bc084d58e7e97ee (patch) | |
tree | ef9643e44e0bc63f67357394a177b142012b1cea /tests | |
parent | 6612f4d74792016add6d9067f732bad999d13b80 (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/5012
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Anand Avati <avati@redhat.com>
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/bugs/bug-887145.t | 7 |
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; |