Bug 1227918 - Log exception in harness class setup; r=automatedtester
authorMaja Frydrychowicz <mjzffr@gmail.com>
Thu, 26 Nov 2015 22:52:17 -0500
changeset 308671 679df006697208909599c1603077dc4a0cd92bc0
parent 308670 6ea07e990e01cd27e765e3d66ca465db5829fe4b
child 308672 c2cf3f48bf13825bc6107a63d4baad1911dc6528
push id5513
push userraliiev@mozilla.com
push dateMon, 25 Jan 2016 13:55:34 +0000
treeherdermozilla-beta@5ee97dd05b5c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersautomatedtester
bugs1227918
milestone45.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1227918 - Log exception in harness class setup; r=automatedtester
testing/marionette/client/marionette/runtests.py
--- a/testing/marionette/client/marionette/runtests.py
+++ b/testing/marionette/client/marionette/runtests.py
@@ -81,18 +81,20 @@ def cli(runner_class=MarionetteTestRunne
     """
     Call the harness to parse args and run tests.
 
     The following exit codes are expected:
     - Test failures: 10
     - Harness/other failures: 1
     - Success: 0
     """
+    logger = mozlog.commandline.setup_logging('Marionette test runner', {})
     try:
         failed = harness_class(runner_class, parser_class).run()
         if failed > 0:
             sys.exit(10)
     except Exception:
+        logger.error('Failure during harness setup', exc_info=True)
         sys.exit(1)
     sys.exit(0)
 
 if __name__ == "__main__":
     cli()