nrwt: don't choke when printing invalid utf-8 to stderr
authordgrogan@chromium.org <dgrogan@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 13 Jul 2012 08:23:18 +0000 (08:23 +0000)
committerdgrogan@chromium.org <dgrogan@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 13 Jul 2012 08:23:18 +0000 (08:23 +0000)
https://bugs.webkit.org/show_bug.cgi?id=91181

Reviewed by Dirk Pranke.

* Scripts/webkitpy/layout_tests/controllers/test_result_writer.py:
(TestResultWriter.write_stderr):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@122551 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Tools/ChangeLog
Tools/Scripts/webkitpy/layout_tests/controllers/test_result_writer.py

index b4d89dc..6f77e5d 100644 (file)
@@ -1,3 +1,13 @@
+2012-07-13  David Grogan  <dgrogan@chromium.org>
+
+        nrwt: don't choke when printing invalid utf-8 to stderr
+        https://bugs.webkit.org/show_bug.cgi?id=91181
+
+        Reviewed by Dirk Pranke.
+
+        * Scripts/webkitpy/layout_tests/controllers/test_result_writer.py:
+        (TestResultWriter.write_stderr):
+
 2012-07-13  Dirk Pranke  <dpranke@chromium.org>
 
         test-webkitpy: more class renaming cleanup
index e1201ac..243a11d 100644 (file)
@@ -160,7 +160,7 @@ class TestResultWriter(object):
 
     def write_stderr(self, error):
         filename = self.output_filename(self.FILENAME_SUFFIX_STDERR + ".txt")
-        self._write_text_file(filename, error)
+        self._write_binary_file(filename, error)
 
     def write_crash_log(self, crash_log):
         filename = self.output_filename(self.FILENAME_SUFFIX_CRASH_LOG + ".txt")