forked from OSchip/llvm-project
[lit] Ignore errors when decoding redirected output.
llvm-svn: 272066
This commit is contained in:
parent
f894b5e89c
commit
f62faf6c48
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue