Status: New
Owner: ----

New issue 3115 by [email protected]: run-tests.py with --junitout fails on unicode errors
http://code.google.com/p/v8/issues/detail?id=3115

Steps to reproduce

1. On platform of choice, modify test/intl/break-iterator/zh-break.js and change one of the asserts to be invalid.
2. Build v8 (if not already built)
3.  run
python tools/run-tests.py intl --no-presubmit --junitout test.xml
4. Python crashes. (Expected: Python should not crash, and produce a well formatted junit xml file)

Proposed fix:
--- tools/testrunner/local/junit_output.py      (revision 18803)
+++ tools/testrunner/local/junit_output.py      (working copy)
@@ -40,7 +40,7 @@
     testCaseElement.attrib["time"] = str(round(test_duration, 3))
     if len(test_failure):
       failureElement = xml.Element("failure")
-      failureElement.text = test_failure
+      failureElement.text = test_failure.decode("utf-8")
       testCaseElement.append(failureElement)
     self.root.append(testCaseElement)


--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to