Merge pull request #5427 from jtattermusch/fix_gcc44_string_decode

Don't fail when generating report.xml on gcc4.4
pull/5447/head
Michael Lumish 9 years ago
commit 8d7c99353b
  1. 2
      tools/run_tests/report_utils.py

@ -47,7 +47,7 @@ def _filter_msg(msg, output_format):
# that make XML report unparseable. # that make XML report unparseable.
filtered_msg = filter( filtered_msg = filter(
lambda x: x in string.printable and x != '\f' and x != '\v', lambda x: x in string.printable and x != '\f' and x != '\v',
msg.decode(errors='ignore')) msg.decode('UTF-8', 'ignore'))
if output_format == 'HTML': if output_format == 'HTML':
filtered_msg = filtered_msg.replace('"', '"') filtered_msg = filtered_msg.replace('"', '"')
return filtered_msg return filtered_msg

Loading…
Cancel
Save