tests/run-tests.py
branchstable
changeset 1183 f5d89f804e6f
parent 1182 e553e222bd7e
child 1186 d821f658f7a3
--- a/tests/run-tests.py	Mon Jan 07 02:00:43 2013 +0100
+++ b/tests/run-tests.py	Mon Jan 07 02:00:43 2013 +0100
@@ -749,7 +749,8 @@
     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, cwd=wd)
+        proc = subprocess.Popen(cmd, shell=True, cwd=wd, stdin=subprocess.PIPE)
+        proc.stdin.close()
         ret = proc.wait()
         return (ret, None)