run-tests: make --debug run in the temporary test directory
authorPatrick Mezard <pmezard@gmail.com>
Mon, 16 May 2011 21:54:43 +0200
changeset 14339 ed0bf8e1cd28
parent 14338 862f8cd87546
child 14340 defa319d8bb7
run-tests: make --debug run in the temporary test directory
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)