Commit 0f75d7d3 authored by brendan.kirby's avatar brendan.kirby Committed by Commit bot

Remove invalid UTF-8 characters from test output

Occasionally tests output characters that aren't valid unicode UTF-8
characters.  This causes the --json-test-results file not to be written.
Replace these characters with the UTF-8 invalid character.

BUG=

Review-Url: https://codereview.chromium.org/2086143003
Cr-Commit-Position: refs/heads/master@{#37404}
parent 486d1819
......@@ -111,8 +111,8 @@ def RunProcess(verbose, timeout, args, **rest):
return output.Output(
process.returncode,
timeout_result[0],
stdout,
stderr,
stdout.decode('utf-8', 'replace').encode('utf-8'),
stderr.decode('utf-8', 'replace').encode('utf-8'),
process.pid,
)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment