Pass sys.stdout to Popen instead of subprocess.STDOUT

For some reason, subprocess.STDOUT is completely ignored when run on
Travis. Using sys.stdout however works as expected.
This commit is contained in:
Alexander Block 2017-12-22 07:29:23 +01:00
parent a0481f1ed0
commit 475dbd49be

View File

@ -323,7 +323,7 @@ def start_node(i, dirname, extra_args=None, rpchost=None, timewait=None, binary=
# Otherwise the whole test would be considered to be failed in such cases
stderr = None
if redirect_stderr:
stderr = subprocess.STDOUT
stderr = sys.stdout
bitcoind_processes[i] = subprocess.Popen(args, stderr=stderr)
if os.getenv("PYTHON_DEBUG", ""):