diff options
author | Daniel Dunbar <daniel@zuster.org> | 2016-06-08 14:41:44 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2016-06-08 14:41:44 +0000 |
commit | 48295619b5f641c4ea8a877f401d22ab05c6f90b (patch) | |
tree | add2236dc1ad3d00e28ccc9a350bb4e9a7fb3e05 | |
parent | 3e097b1a06e6950d0e0bd57a4758d6c7c2d6c8ae (diff) | |
download | bcm5719-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.py | 2 |
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 |