From 14153653a83513e0a96fcc6bbe6a80f0070d6eb7 Mon Sep 17 00:00:00 2001 From: Geoff Brown Date: Fri, 25 Oct 2019 21:18:50 +0000 Subject: [PATCH] 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 --- testing/gtest/rungtests.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/testing/gtest/rungtests.py b/testing/gtest/rungtests.py index f94254ddd18f..d6501671ab01 100644 --- a/testing/gtest/rungtests.py +++ b/testing/gtest/rungtests.py @@ -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__':