diff options
author | Jiffin Tony Thottan <jthottan@redhat.com> | 2015-08-24 18:01:19 +0530 |
---|---|---|
committer | Raghavendra Talur <rtalur@redhat.com> | 2015-09-01 01:47:57 -0700 |
commit | 4386c7a504273663ca47126673454a74c5ad97a6 (patch) | |
tree | 046b1df8476545049a797fd626f3c364c5f224b2 | |
parent | eb33931e4f7f57af87e307d36baba5084cd97da8 (diff) |
tests : workaround for the spurious failure in mount-nfs-auth.t
Backport of http://review.gluster.org/#/c/12006/
Upstream reference :
>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>
>cherry-picked as 9f52d22690b3b0aac0a736eb15fe649fde6286b5
Change-Id: I82ab11692e84e13ae94623d38610e05c21fc4dbe
BUG: 1258717
Signed-off-by: Jiffin Tony Thottan <jthottan@redhat.com>
Reviewed-on: http://review.gluster.org/12071
Tested-by: NetBSD Build System <jenkins@build.gluster.org>
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Raghavendra Talur <rtalur@redhat.com>
-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 1e7394bad42..4247d63d5eb 100755 --- a/run-tests.sh +++ b/run-tests.sh @@ -199,7 +199,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/tier/tier.t \ diff --git a/tests/basic/mount-nfs-auth.t b/tests/basic/mount-nfs-auth.t index fcb41e8e35b..eb373731adb 100755 --- a/tests/basic/mount-nfs-auth.t +++ b/tests/basic/mount-nfs-auth.t @@ -245,8 +245,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 |