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:
Henrik Skupin 2018-09-05 18:17:57 +02:00
Родитель e85d8f7ebd
Коммит 316ef3ba2c
1 изменённых файлов: 4 добавлений и 0 удалений

Просмотреть файл

@ -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))