зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1488820 - [marionette] Check for crashes if no connection can be established in raise_for_port().
--HG-- extra : rebase_source : 02b2a2718f44589efe8f96553edb749ce5e00f17
This commit is contained in:
Родитель
e85d8f7ebd
Коммит
316ef3ba2c
|
@ -722,6 +722,10 @@ class Marionette(object):
|
|||
time.sleep(poll_interval)
|
||||
|
||||
if not connected:
|
||||
# There might have been a startup crash of the application
|
||||
if runner is not None and self.check_for_crash() > 0:
|
||||
raise IOError('Process crashed (Exit code: {})'.format(runner.wait(0)))
|
||||
|
||||
raise socket.timeout("Timed out waiting for connection on {0}:{1}!".format(
|
||||
self.host, self.port))
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче