projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
lit: Workaround a Win32/subprocess bug when appending.
[oota-llvm.git]
/
utils
/
lit
/
TestRunner.py
diff --git
a/utils/lit/TestRunner.py
b/utils/lit/TestRunner.py
index bee1167f6af78a6e6358d17f29ab8e4d96b3adf8..7abc60a1f0045b0ba379ccd4576057858b62d0fd 100644
(file)
--- a/
utils/lit/TestRunner.py
+++ b/
utils/lit/TestRunner.py
@@
-112,6
+112,9
@@
def executeShCmd(cmd, cfg, cwd, results):
r[2] = tempfile.TemporaryFile(mode=r[1])
else:
r[2] = open(r[0], r[1])
+ # Workaround a Win32 and/or subprocess bug when appending.
+ if r[1] == 'a':
+ r[2].seek(0, os.SEEK_END)
result = r[2]
final_redirects.append(result)