diff options
-rw-r--r-- | tests/basic/nufa.t | 2 | ||||
-rwxr-xr-x | tests/basic/quota.t | 3 | ||||
-rw-r--r-- | tests/basic/uss.t | 4 | ||||
-rw-r--r-- | tests/basic/volume-status.t | 3 |
4 files changed, 11 insertions, 1 deletions
diff --git a/tests/basic/nufa.t b/tests/basic/nufa.t index c368f87787e..ca4054a354d 100644 --- a/tests/basic/nufa.t +++ b/tests/basic/nufa.t @@ -27,6 +27,8 @@ TEST $GFS --read-only -s $H0 --volfile-id $V0 $M1; ## Wait for volume to register with rpc.mountd sleep 5; +##Wait for connection establishment between nfs server and brick process +EXPECT_WITHIN $NFS_EXPORT_TIMEOUT "1" is_nfs_export_available; ## Mount NFS TEST mount_nfs $H0:/$V0 $N0 nolock; 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 diff --git a/tests/basic/uss.t b/tests/basic/uss.t index 2ce78bb682b..a83cbeddaee 100644 --- a/tests/basic/uss.t +++ b/tests/basic/uss.t @@ -98,7 +98,9 @@ TEST fd_close $fd3 # similar tests on nfs mount -# test 44 +##Wait for connection establishment between nfs server and brick process +EXPECT_WITHIN $NFS_EXPORT_TIMEOUT "1" is_nfs_export_available; +#test 44 TEST mount_nfs $H0:/$V0 $N0 nolock; NUM_SNAPS=$(ls $N0/.snaps | wc -l); diff --git a/tests/basic/volume-status.t b/tests/basic/volume-status.t index 41c0ceeaebe..bd85ab659bc 100644 --- a/tests/basic/volume-status.t +++ b/tests/basic/volume-status.t @@ -19,6 +19,9 @@ sleep 2 ## Mount FUSE TEST $GFS -s $H0 --volfile-id $V0 $M0; +##Wait for connection establishment between nfs server and brick process +EXPECT_WITHIN $NFS_EXPORT_TIMEOUT "1" is_nfs_export_available; + ## Mount NFS TEST mount_nfs $H0:/$V0 $N0 nolock; |