Dump portlog.txt on port server error, detect crashes earlier

pull/3470/head
Craig Tiller 9 years ago
parent 9e71674ab9
commit a2f38b0563
  1. 3
      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,

Loading…
Cancel
Save