Bug 1387612 - Show Safe Browsing timeouts in Marionette logs. r?whimboo draft
authorFrancois Marier <francois@mozilla.com>
Fri, 04 Aug 2017 16:57:49 -0700
changeset 644438 e2fcd475a93372aa3068abd64fe4c7c807462ce5
parent 620658 36ad88e6b7b248c2f2ae59b80477e5474dd653dc
child 725605 fd5596e9a665c98a92ba18db2093bc968c48a35f
push id73435
push userfmarier@mozilla.com
push dateThu, 10 Aug 2017 23:09:23 +0000
reviewerswhimboo
bugs1387612
milestone57.0a1
Bug 1387612 - Show Safe Browsing timeouts in Marionette logs. r?whimboo MozReview-Commit-ID: 2GbcPnakEku
testing/firefox-ui/harness/firefox_ui_harness/runners/base.py
--- a/testing/firefox-ui/harness/firefox_ui_harness/runners/base.py
+++ b/testing/firefox-ui/harness/firefox_ui_harness/runners/base.py
@@ -15,16 +15,27 @@ from marionette_harness import BaseMario
 class FirefoxUITestRunner(BaseMarionetteTestRunner):
 
     def __init__(self, **kwargs):
         super(FirefoxUITestRunner, self).__init__(**kwargs)
 
         # select the appropriate GeckoInstance
         self.app = 'fxdesktop'
 
+        # low-noise log messages useful in tests
+        # TODO: should be moved to individual tests once bug 1386810
+        # is fixed
+        moz_log = ''
+        if 'MOZ_LOG' in os.environ:
+            moz_log = os.environ['MOZ_LOG']
+        if len(moz_log) > 0:
+            moz_log += ','
+        moz_log += 'UrlClassifierStreamUpdater:1'
+        os.environ['MOZ_LOG'] = moz_log
+
         self.test_handlers = [MarionetteTestCase]
 
     def duplicate_application(self, application_folder):
         """Creates a copy of the specified binary."""
 
         if self.workspace:
             target_folder = os.path.join(self.workspace_path, 'application.copy')
         else: