[lit] Ignore errors when decoding redirected output.

llvm-svn: 272066
This commit is contained in:
Daniel Dunbar 2016-06-07 22:06:57 +00:00
parent f894b5e89c
commit f62faf6c48
1 changed files with 1 additions and 1 deletions

View File

@ -476,7 +476,7 @@ def executeScriptInternal(test, litConfig, tmpBase, commands, cwd):
for (name, path, data) in result.outputFiles:
if data.strip():
out += "# redirected output from %r:\n" % (name,)
data = to_string(data.decode('utf-8'))
data = to_string(data.decode('utf-8', errors='replace'))
if len(data) > 1024:
out += data[:1024] + "\n...\n"
out += "note: data was truncated\n"