summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJiffin Tony Thottan <jthottan@redhat.com>2015-08-24 18:01:19 +0530
committerNiels de Vos <ndevos@redhat.com>2015-08-31 12:00:11 -0700
commit9f52d22690b3b0aac0a736eb15fe649fde6286b5 (patch)
tree216b9c877cdd48551da822eaef43ee8d86c3f1a8 /tests
parente012bdc721945fb6d996e3f67881a705ef966026 (diff)
tests : workaround for the spurious failure in mount-nfs-auth.t
Change-Id: I459a0c60743291a2e164a5e0a76a7e2577afdae0 BUG: 1256352 Signed-off-by: Jiffin Tony Thottan <jthottan@redhat.com> Reviewed-on: http://review.gluster.org/12006 Reviewed-by: Niels de Vos <ndevos@redhat.com> Tested-by: NetBSD Build System <jenkins@build.gluster.org> Tested-by: Gluster Build System <jenkins@build.gluster.com>
Diffstat (limited to 'tests')
-rwxr-xr-xtests/basic/mount-nfs-auth.t8
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/basic/mount-nfs-auth.t b/tests/basic/mount-nfs-auth.t
index 06b1e4e0493..6e99dd58ad0 100755
--- a/tests/basic/mount-nfs-auth.t
+++ b/tests/basic/mount-nfs-auth.t
@@ -246,8 +246,12 @@ EXPECT_WITHIN $UMOUNT_TIMEOUT "Y" umount_nfs $N0
TEST export_allow_this_host_ro
TEST netgroup_deny_this_host
-EXPECT "Y" check_mount_success $V0
-EXPECT_WITHIN $AUTH_REFRESH_INTERVAL "N" small_write # Writes should not be allowed
+## Restart the nfs server to avoid spurious failure(BZ1256352)
+$CLI vol stop $V0
+$CLI vol start $V0
+
+EXPECT_WITHIN $AUTH_REFRESH_INTERVAL "Y" check_mount_success $V0
+EXPECT "N" small_write # Writes should not be allowed
TEST ! create # Create should not be allowed
TEST stat_nfs # Stat should be allowed
EXPECT_WITHIN $UMOUNT_TIMEOUT "Y" umount_nfs $N0