path: root/tests/bitrot
diff options
authorKotresh HR <>2016-07-20 11:36:31 +0530
committerJeff Darcy <>2016-07-21 07:25:30 -0700
commitf4bbe515097e0149c78c1fc1bae9fb90928e7cd8 (patch)
tree21a04398daf4bd905d945d17dd9318b335e418e3 /tests/bitrot
parent8c47b19fc057f08c47444ef557503e610c707128 (diff)
tests: Fix spurious failure of br-stub.t
The nfs mount fails occasionally in ./tests/bitrot/br-stub.t. The reason being nfs mount is attempted before the gluster nfs has come up. It is a race and hence happens occasionally. The patch fixes it by waiting for nfs server to come up before mount. Thanks for root causing it. Change-Id: I3adbf2363514635785c02b1478733095ad0b74cf BUG: 1358114 Signed-off-by: Kotresh HR <> Reviewed-on: Smoke: Gluster Build System <> NetBSD-regression: NetBSD Build System <> Reviewed-by: Poornima G <> Reviewed-by: soumya k <> Reviewed-by: jiffin tony Thottan <> CentOS-regression: Gluster Build System <> Reviewed-by: Jeff Darcy <>
Diffstat (limited to 'tests/bitrot')
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/bitrot/br-stub.t b/tests/bitrot/br-stub.t
index 56b0960..8ce170d 100644
--- a/tests/bitrot/br-stub.t
+++ b/tests/bitrot/br-stub.t
@@ -27,6 +27,9 @@ TEST $CLI volume set $V0 performance.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
## Mount the volume
TEST $GFS --volfile-server=$H0 --volfile-id=$V0 $M0;
TEST mount_nfs $H0:/$V0 $N0 nolock;