summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2016-06-08 14:41:44 +0000
committerDaniel Dunbar <daniel@zuster.org>2016-06-08 14:41:44 +0000
commit48295619b5f641c4ea8a877f401d22ab05c6f90b (patch)
treeadd2236dc1ad3d00e28ccc9a350bb4e9a7fb3e05
parent3e097b1a06e6950d0e0bd57a4758d6c7c2d6c8ae (diff)
downloadbcm5719-llvm-48295619b5f641c4ea8a877f401d22ab05c6f90b.tar.gz
bcm5719-llvm-48295619b5f641c4ea8a877f401d22ab05c6f90b.zip
[lit] Ensure we get bytes when reading redirected output files.
llvm-svn: 272147
-rw-r--r--llvm/utils/lit/lit/TestRunner.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/utils/lit/lit/TestRunner.py b/llvm/utils/lit/lit/TestRunner.py
index 761fcb981a1..36d429204fd 100644
--- a/llvm/utils/lit/lit/TestRunner.py
+++ b/llvm/utils/lit/lit/TestRunner.py
@@ -401,7 +401,7 @@ def _executeShCmd(cmd, shenv, results, timeoutHelper):
for (name, mode, f, path) in sorted(opened_files):
if path is not None and mode in ('w', 'a'):
try:
- with open(path) as f:
+ with open(path, 'rb') as f:
data = f.read()
except:
data = None
OpenPOWER on IntegriCloud