[llvm] r272066 - [lit] Ignore errors when decoding redirected output.
Daniel Dunbar via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 7 15:06:58 PDT 2016
Author: ddunbar
Date: Tue Jun 7 17:06:57 2016
New Revision: 272066
URL: http://llvm.org/viewvc/llvm-project?rev=272066&view=rev
Log:
[lit] Ignore errors when decoding redirected output.
Modified:
llvm/trunk/utils/lit/lit/TestRunner.py
Modified: llvm/trunk/utils/lit/lit/TestRunner.py
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/lit/lit/TestRunner.py?rev=272066&r1=272065&r2=272066&view=diff
==============================================================================
--- llvm/trunk/utils/lit/lit/TestRunner.py (original)
+++ llvm/trunk/utils/lit/lit/TestRunner.py Tue Jun 7 17:06:57 2016
@@ -476,7 +476,7 @@ def executeScriptInternal(test, litConfi
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"
More information about the llvm-commits
mailing list