[lit] Ensure we get bytes when reading redirected output files.
llvm-svn: 272147
This commit is contained in:
parent
3e097b1a06
commit
48295619b5
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue