Commit 1d49bad9 authored by Raul Tambre's avatar Raul Tambre Committed by Commit Bot

fake_repos: Log stderr when Git fails to start

Bug: 962263
Change-Id: I71824bf30ff6d735d07e70e8b1cd054530d8985b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/1607844
Auto-Submit: Raul Tambre <raul@tambre.ee>
Reviewed-by: 's avatarDirk Pranke <dpranke@chromium.org>
Commit-Queue: Raul Tambre <raul@tambre.ee>
parent 60c7eaa7
......@@ -108,7 +108,9 @@ def wait_for_port_to_bind(host, port, process):
sock.close()
# The process failed to bind. Kill it and dump its ouput.
process.kill()
logging.error('%s' % process.communicate()[0])
stdout, stderr = process.communicate()
logging.debug('%s' % stdout)
logging.error('%s' % stderr)
assert False, '%d is still not bound' % port
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment