From 845aeb709e0e7e037a5b5afc7bc084d58e7e97ee Mon Sep 17 00:00:00 2001 From: Vijay Bellur Date: Wed, 15 May 2013 15:30:33 +0530 Subject: tests: Ensure portmap registration before nfs mount. Change-Id: I12a660a7dfbe4a2d0428910d762434043395fe02 BUG: 927616 Signed-off-by: Vijay Bellur Reviewed-on: http://review.gluster.org/5012 Tested-by: Gluster Build System Reviewed-by: Anand Avati --- tests/bugs/bug-887145.t | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/bugs/bug-887145.t b/tests/bugs/bug-887145.t index 8e5f03900..6758ace40 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; -- cgit