Bug 1411913 - Enable Marionette trace log for mochitest/reftest by default. draft
authorHenrik Skupin <mail@hskupin.info>
Thu, 26 Oct 2017 13:05:17 +0200
changeset 686795 8ce2d10563a9b3034f4b180db24445f8482ab508
parent 686201 24906afd73a2dd1a9d2d71dbb8f14c44b74e224f
child 737466 6a5b34685190bcbbc7df8b2c1881ee5060858827
push id86287
push userbmo:hskupin@gmail.com
push dateThu, 26 Oct 2017 11:05:58 +0000
bugs1411913
milestone58.0a1
Bug 1411913 - Enable Marionette trace log for mochitest/reftest by default. MozReview-Commit-ID: 1cGy3YlJml1
layout/tools/reftest/runreftest.py
testing/mochitest/runtests.py
--- a/layout/tools/reftest/runreftest.py
+++ b/layout/tools/reftest/runreftest.py
@@ -322,16 +322,20 @@ class RefTest(object):
         if platform.system() in ("Windows", "Microsoft") and \
            '6.1' in platform.version():
             prefs['reftest.nocache'] = True
 
         if options.marionette:
             port = options.marionette.split(':')[1]
             prefs['marionette.defaultPrefs.port'] = int(port)
 
+            # Enable tracing output for detailed failures in case of
+            # failing connection attempts, and hangs (bug 1397201)
+            prefs['marionette.logging'] = "TRACE"
+
         preference_file = os.path.join(here, 'reftest-preferences.js')
         prefs.update(mozprofile.Preferences.read_prefs(preference_file))
 
         for v in options.extraPrefs:
             thispref = v.split('=')
             if len(thispref) < 2:
                 print "Error: syntax error in --setpref=" + v
                 sys.exit(1)
--- a/testing/mochitest/runtests.py
+++ b/testing/mochitest/runtests.py
@@ -1800,16 +1800,22 @@ toolbar#nav-bar {
         options.extraPrefs.append(
             "dom.ipc.tabs.nested.enabled=%s" %
             ('true' if options.nested_oop else 'false'))
 
         options.extraPrefs.append(
             "idle.lastDailyNotification=%d" %
             int(time.time()))
 
+        # Enable tracing output for detailed failures in case of
+        # failing connection attempts, and hangs (bug 1397201)
+        options.extraPrefs.append(
+            "marionette.logging=%s" %
+            "TRACE")
+
         # get extensions to install
         extensions = self.getExtensionsToInstall(options)
 
         # preferences
         preferences = [
             os.path.join(
                 SCRIPT_DIR,
                 'profile_data',