Bug 1354265 - Run process output through the stack fixer in mochitests. r=jgraham
authorChris Manchester <cmanchester@mozilla.com>
Thu, 06 Apr 2017 12:58:28 -0700
changeset 351882 e70b8e5ed92505bbed32cca763e5f92a23ae8c14
parent 351881 752d857f85cd9374ea28c309b74585c2548a2d7a
child 351883 107ccefe10d2fc60de12f53d9a327608ca8413bf
push id31623
push userarchaeopteryx@coole-files.de
push dateSat, 08 Apr 2017 20:46:02 +0000
treeherdermozilla-central@21c4aca1ae60 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjgraham
bugs1354265
milestone55.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 1354265 - Run process output through the stack fixer in mochitests. r=jgraham MozReview-Commit-ID: LA4LCk9TetD
testing/mochitest/runtests.py
--- a/testing/mochitest/runtests.py
+++ b/testing/mochitest/runtests.py
@@ -2691,18 +2691,21 @@ toolbar#nav-bar {
                 self.harness.countpass += val
             elif "Failed:" in line:
                 self.harness.countfail += val
             elif "Todo:" in line:
                 self.harness.counttodo += val
             return message
 
         def fix_stack(self, message):
-            if message['action'] == 'log' and self.stackFixerFunction:
-                message['message'] = self.stackFixerFunction(message['message'])
+            if self.stackFixerFunction:
+                if message['action'] == 'log':
+                    message['message'] = self.stackFixerFunction(message['message'])
+                elif message['action'] == 'process_output':
+                    message['data'] = self.stackFixerFunction(message['data'])
             return message
 
         def record_last_test(self, message):
             """record last test on harness"""
             if message['action'] == 'test_start':
                 self.harness.lastTestSeen = message['test']
             return message