diff options
-rwxr-xr-x | run-tests.sh | 1 | ||||
-rwxr-xr-x | tests/basic/mount-nfs-auth.t | 8 |
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 |