summaryrefslogtreecommitdiffstats
path: root/llvm/utils/lit
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2012-12-05 23:15:33 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2012-12-05 23:15:33 +0000
commit0ab6c5d9d88b4fab70b8d7f4711d354616ebb590 (patch)
tree243d18268a4a3a623d827cdb4855bca2e570849e /llvm/utils/lit
parent636386753a48af2303b1f267086980b926ae6d8e (diff)
downloadbcm5719-llvm-0ab6c5d9d88b4fab70b8d7f4711d354616ebb590.tar.gz
bcm5719-llvm-0ab6c5d9d88b4fab70b8d7f4711d354616ebb590.zip
PR10867: Analogue of r169441 for when using external 'sh'. And actually run the test!
llvm-svn: 169446
Diffstat (limited to 'llvm/utils/lit')
-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 fa4880a593a..652e8b499c5 100644
--- a/llvm/utils/lit/lit/TestRunner.py
+++ b/llvm/utils/lit/lit/TestRunner.py
@@ -357,7 +357,7 @@ def executeScript(test, litConfig, tmpBase, commands, cwd):
if isWin32CMDEXE:
f.write('\nif %ERRORLEVEL% NEQ 0 EXIT\n'.join(commands))
else:
- f.write(' &&\n'.join(commands))
+ f.write('{ ' + '; } &&\n{ '.join(commands) + '; }')
f.write('\n')
f.close()
OpenPOWER on IntegriCloud