# HG changeset patch # User Mads Kiilerich # Date 2013-01-18 00:16:16 # Node ID e760414be20164dd479a3d325214c709d76aee0d # Parent 7159426c8d13647679e47f4692d5aeb7cdf31baa run-tests.py: backout "don't use console for stdin when running in debug mode" f5842787a958 caused that some kind of interactive debugging no longer was possible - such as running hg with --debugger in a test run with run-tests.py --debug . diff --git a/tests/run-tests.py b/tests/run-tests.py --- a/tests/run-tests.py +++ b/tests/run-tests.py @@ -751,8 +751,7 @@ def run(cmd, wd, options, replacements): 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, stdin=subprocess.PIPE) - proc.stdin.close() + proc = subprocess.Popen(cmd, shell=True, cwd=wd) ret = proc.wait() return (ret, None)