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 559076 e70b8e5ed92505bbed32cca763e5f92a23ae8c14
parent 559075 752d857f85cd9374ea28c309b74585c2548a2d7a
child 559077 107ccefe10d2fc60de12f53d9a327608ca8413bf
push id53003
push userdgottwald@mozilla.com
push dateSat, 08 Apr 2017 22:00:51 +0000
reviewersjgraham
bugs1354265
milestone55.0a1
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