summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRichard Wareing <rwareing@fb.com>2015-09-25 19:35:10 -0700
committerJeff Darcy <jeff@pl.atyp.us>2017-07-07 19:15:01 +0000
commit24d3099681c4fbeb4c9d868ee58810548335833a (patch)
tree99c36ad145c8fcf7ce5e3ab24c33e23e1de89de3 /tests
parent3fcf536f4983fc8a3da7c5204f3dd9b75259a7a8 (diff)
cluster/afr: Adjust gfid unsplit flow for proper correctness w/ AFR2
Summary: - Prior patch did not re-run the gfid-mismatch flow after doing the unsplit. I think this is prudent to re-validate the unsplit worked as well as allow the code to continue from where it effectively left off. Test Plan: - Run prove -v tests/basic/gfid_unsplit.t Reviewers: dph, moox, sshreyas Reviewed By: sshreyas Change-Id: Ib3ed40f3db38c89090a876d7af3a1b2a303539d5 Signed-off-by: Jeff Darcy <jdarcy@fb.com> Reviewed-on: https://review.gluster.org/17729 Smoke: Gluster Build System <jenkins@build.gluster.org> Tested-by: Jeff Darcy <jeff@pl.atyp.us> CentOS-regression: Gluster Build System <jenkins@build.gluster.org> Reviewed-by: Jeff Darcy <jeff@pl.atyp.us>
Diffstat (limited to 'tests')
-rw-r--r--tests/basic/gfid_unsplit.t4
-rw-r--r--tests/include.rc3
2 files changed, 6 insertions, 1 deletions
diff --git a/tests/basic/gfid_unsplit.t b/tests/basic/gfid_unsplit.t
index 9bb52f4533a..3fe7a6f140c 100644
--- a/tests/basic/gfid_unsplit.t
+++ b/tests/basic/gfid_unsplit.t
@@ -2,6 +2,7 @@
. $(dirname $0)/../include.rc
. $(dirname $0)/../volume.rc
+. $(dirname $0)/../nfs.rc
cleanup;
@@ -63,7 +64,8 @@ TEST [ "$MD5" == "$HEALED_MD5" ]
TEST rm -f $M0/splitfile
# Part II: NFS test
-TEST mount -t nfs -o nolock,noatime,noacl,soft,intr $H0:/$V0 $N0;
+TEST mount_nfs $H0:/$V0 $N0 nolock
+#EST mount -t nfs -o nolock,noatime,noacl,soft,intr $H0:/$V0 $N0;
dd if=/dev/urandom of=$N0/splitfile bs=128k count=5 2>/dev/null
diff --git a/tests/include.rc b/tests/include.rc
index 872aec11edf..8b6504e6c58 100644
--- a/tests/include.rc
+++ b/tests/include.rc
@@ -426,6 +426,7 @@ stat -c %s /dev/null > /dev/null 2>&1 || {
function cleanup()
{
+ local OLDPWD=$PWD
cd # Things go pear-shaped if we're inside a Gluster mount.
# Prepare flags for umount
@@ -578,6 +579,8 @@ function cleanup()
# above to fail, promoting that into a failure of the whole test (and
# thus of an entire regression-test run) seems a bit excessive. Make
# sure we return good status anyway.
+
+ cd $OLDPWD
return 0
}