aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/run_tests
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2015-09-24 11:19:17 -0700
committerGravatar Craig Tiller <ctiller@google.com>2015-09-24 11:19:17 -0700
commita2f38b0563beba703922c7aaa0a61a975d8b830e (patch)
treecd5543256d45be7fe6e0845a1007b017cfc573c2 /tools/run_tests
parent9e71674ab942c748f24e945327424163c15b5e66 (diff)
Dump portlog.txt on port server error, detect crashes earlier
Diffstat (limited to 'tools/run_tests')
-rwxr-xr-xtools/run_tests/run_tests.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/run_tests/run_tests.py b/tools/run_tests/run_tests.py
index e971aaf9c3..d271137ca1 100755
--- a/tools/run_tests/run_tests.py
+++ b/tools/run_tests/run_tests.py
@@ -727,7 +727,10 @@ def _start_port_server(port_server_port):
while True:
if waits > 10:
port_server.kill()
+ if port_server.poll() is not None:
print "port_server failed to start"
+ port_log = open('portlog.txt', 'r').read()
+ print port_log
sys.exit(1)
try:
urllib2.urlopen('http://localhost:%d/get' % port_server_port,