tests/run-tests.py
changeset 33115 fa9a90d5ad89
parent 32982 573baab2a797
child 33126 98e2c78e309c
--- a/tests/run-tests.py	Tue Jun 27 16:15:32 2017 -0700
+++ b/tests/run-tests.py	Tue Jun 27 17:24:31 2017 -0700
@@ -2274,6 +2274,9 @@
             sepb = _bytespath(os.pathsep)
         else:
             sepb = os.pathsep
+        # save the original path, for tests that need to invoke the
+        # system python
+        osenvironb[b"ORIG_PATH"] = osenvironb[b"PATH"]
         path = [self._bindir, runtestdir] + osenvironb[b"PATH"].split(sepb)
         if os.path.islink(__file__):
             # test helper will likely be at the end of the symlink
@@ -2299,6 +2302,7 @@
         # are in /opt/subversion.)
         oldpypath = osenvironb.get(IMPL_PATH)
         if oldpypath:
+            osenvironb['ORIG_' + IMPL_PATH] = oldpypath
             pypath.append(oldpypath)
         osenvironb[IMPL_PATH] = sepb.join(pypath)