run-tests: make --debug run in the temporary test directory stable
authorPatrick Mezard <pmezard@gmail.com>
Mon, 16 May 2011 21:54:43 +0200
branchstable
changeset 946 b6a39effa432
parent 945 83e828101e3c
child 947 23f0eeb598b5
run-tests: make --debug run in the temporary test directory [ original upstream message ]
tests/run-tests.py
--- a/tests/run-tests.py	Mon May 16 21:52:28 2011 +0200
+++ b/tests/run-tests.py	Mon May 16 21:54:43 2011 +0200
@@ -638,7 +638,7 @@
     Return a tuple (exitcode, output).  output is None in debug mode."""
     # TODO: Use subprocess.Popen if we're running on Python 2.4
     if options.debug:
-        proc = subprocess.Popen(cmd, shell=True)
+        proc = subprocess.Popen(cmd, shell=True, cwd=wd)
         ret = proc.wait()
         return (ret, None)