Bug 1407390 - [marionette] Log underlying exception message if harness execution fails. r=webdriver-reviewers,ato
authorHenrik Skupin <mail@hskupin.info>
Mon, 20 May 2019 07:10:48 +0000
changeset 474471 e3d25aeb90a855b036e95bdf7f3fe9101822a46f
parent 474470 690e9a5889c41c44d213ce7b275c71c0ec67f935
child 474472 1d9f4477a199f8c33b520683384a11f22b4e51ce
push id36040
push userrgurzau@mozilla.com
push dateMon, 20 May 2019 13:43:21 +0000
treeherdermozilla-central@319a369ccde4 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerswebdriver-reviewers, ato
bugs1407390
milestone68.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 1407390 - [marionette] Log underlying exception message if harness execution fails. r=webdriver-reviewers,ato Differential Revision: https://phabricator.services.mozilla.com/D31753
testing/marionette/harness/marionette_harness/runtests.py
--- a/testing/marionette/harness/marionette_harness/runtests.py
+++ b/testing/marionette/harness/marionette_harness/runtests.py
@@ -86,16 +86,16 @@ def cli(runner_class=MarionetteTestRunne
     """
     logger = mozlog.commandline.setup_logging('Marionette test runner', {})
     try:
         harness_instance = harness_class(runner_class, parser_class, testcase_class,
                                          args=args)
         failed = harness_instance.run()
         if failed > 0:
             sys.exit(10)
-    except Exception:
-        logger.error('Failure during harness execution', exc_info=True)
+    except Exception as e:
+        logger.error(e.message, exc_info=True)
         sys.exit(1)
     sys.exit(0)
 
 
 if __name__ == "__main__":
     cli()