summaryrefslogtreecommitdiffstats
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
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>
-rwxr-xr-xrun-tests.sh1
-rwxr-xr-xtests/basic/mount-nfs-auth.t8
2 files changed, 6 insertions, 3 deletions
diff --git a/run-tests.sh b/run-tests.sh
index 77a7b5d7806..d0804d0767c 100755
--- a/run-tests.sh
+++ b/run-tests.sh
@@ -198,7 +198,6 @@ function is_bad_test ()
./tests/basic/tier/bug-1214222-directories_miising_after_attach_tier.t \
./tests/bugs/snapshot/bug-1109889.t \
./tests/bugs/distribute/bug-1066798.t \
- ./tests/basic/mount-nfs-auth.t \
./tests/geo-rep/georep-basic-dr-rsync.t \
./tests/geo-rep/georep-basic-dr-tarssh.t \
./tests/basic/afr/arbiter-statfs.t \
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