Bug 1580141 Stop raptor tests execution and fail with propper message if mozproxy has issues initiating and starting the proxy r=tarek

Differential Revision: https://phabricator.services.mozilla.com/D47781

--HG--
extra : moz-landing-system : lando
This commit is contained in:
alexandru.ionescu 2019-10-14 13:14:48 +00:00
parent bdf27fe3bd
commit c063b76364

View File

@ -98,7 +98,7 @@ def tooltool_download(manifest, run_local, raptor_dir):
)
if x is not None
)
command = [
sys.executable,
tooltool_path,
@ -110,17 +110,17 @@ def tooltool_download(manifest, run_local, raptor_dir):
_cache,
]
proc = ProcessHandler(
command, processOutputLine=outputHandler, storeOutput=False, cwd=raptor_dir
)
proc.run()
try:
proc = ProcessHandler(
command, processOutputLine=outputHandler, storeOutput=False, cwd=raptor_dir
)
proc.run()
proc.wait()
except Exception:
except Exception as e:
LOG.critical("Error while downloading the hostutils from tooltool: {}".format(str(e)))
if proc.poll() is None:
proc.kill(signal.SIGTERM)
raise
def archive_type(path):