# HG changeset patch # User Mads Kiilerich # Date 1357520443 -3600 # Node ID f5842787a958b8af558bd8aa148f13be6df41992 # Parent 77d06793a20d82c37cfdcfb946f67c60bc4709c8 run-tests.py: don't use console for stdin when running in debug mode Tests would wait for input instead of using non-interactive mode. diff -r 77d06793a20d -r f5842787a958 tests/run-tests.py --- 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)