summaryrefslogtreecommitdiffstats
path: root/tests/include.rc
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/include.rc
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/include.rc')
-rw-r--r--tests/include.rc3
1 files changed, 3 insertions, 0 deletions
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
}