[lit] Ensure we get bytes when reading redirected output files.

llvm-svn: 272147
This commit is contained in:
Daniel Dunbar 2016-06-08 14:41:44 +00:00
parent 3e097b1a06
commit 48295619b5
1 changed files with 1 additions and 1 deletions

View File

@ -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