Bug 1581157 - Improve gtest completion logging; r=bc

Improve gtest diagnostics in an effort to improve our understanding
of this intermittent failure.

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

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Geoff Brown 2019-10-25 21:18:50 +00:00
Родитель adfefda6ba
Коммит 14153653a8
1 изменённых файлов: 4 добавлений и 1 удалений

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

@ -68,6 +68,7 @@ class GTests(object):
proc.run(timeout=GTests.TEST_PROC_TIMEOUT,
outputTimeout=GTests.TEST_PROC_NO_OUTPUT_TIMEOUT)
proc.wait()
log.info("gtest | process wait complete, returncode=%s" % proc.proc.returncode)
if proc.timedOut:
if proc.outputTimedOut:
log.testFail("gtest | timed out after %d seconds without output",
@ -225,7 +226,9 @@ def main():
except Exception as e:
log.error(str(e))
result = False
sys.exit(0 if result else 1)
exit_code = 0 if result else 1
log.info("rungtests.py exits with code %s" % exit_code)
sys.exit(exit_code)
if __name__ == '__main__':