# HG changeset patch # User Mads Kiilerich # Date 1357520443 -3600 # Node ID f5d89f804e6f5eb337273052077f2757238e626d # Parent e553e222bd7e45b0d573e75756ac7eab7a9bd916 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. [ original upstream message ] diff -r e553e222bd7e -r f5d89f804e6f 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)