diff options
author | Craig Tiller <ctiller@google.com> | 2015-09-25 13:09:59 -0700 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2015-09-25 13:09:59 -0700 |
commit | 31fdaa4aa569eb4470c5e65d834165c3e4ab48c2 (patch) | |
tree | 6fe8934b4c6728737e660803a640479b57868c34 /tools | |
parent | a2f38b0563beba703922c7aaa0a61a975d8b830e (diff) |
Retry checking port_server on socket timeout errors
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/run_tests/run_tests.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/run_tests/run_tests.py b/tools/run_tests/run_tests.py index d271137ca1..3c2b2a8b89 100755 --- a/tools/run_tests/run_tests.py +++ b/tools/run_tests/run_tests.py @@ -736,6 +736,10 @@ def _start_port_server(port_server_port): urllib2.urlopen('http://localhost:%d/get' % port_server_port, timeout=1).read() break + except socket.timeout: + print "waiting for port_server" + time.sleep(0.5) + waits += 1 except urllib2.URLError: print "waiting for port_server" time.sleep(0.5) |