summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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