Bug 1040966 - Fix unicode encoding when passing bad unicode to stack fixer. r=ahal
authorTed Mielczarek <ted@mielczarek.org>
Tue, 22 Jul 2014 15:45:54 -0400
changeset 217341 305e0ca907a876162ecbe9b5cb403aba5da62aca
parent 217340 73b13f03a16b20987588f0dff9ba8b01145c3a02
child 217342 ef40e43550a2969cb1c602ff4baece8afd741054
push id3979
push userraliiev@mozilla.com
push dateMon, 13 Oct 2014 16:35:44 +0000
treeherdermozilla-beta@30f2cc610691 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersahal
bugs1040966
milestone34.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 1040966 - Fix unicode encoding when passing bad unicode to stack fixer. r=ahal
testing/mochitest/runtests.py
--- a/testing/mochitest/runtests.py
+++ b/testing/mochitest/runtests.py
@@ -1907,17 +1907,17 @@ class Mochitest(MochitestUtilsMixin):
       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'])
+        message['message'] = self.stackFixerFunction(message['message'].encode('ascii', 'replace'))
       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