aboutsummaryrefslogtreecommitdiffstats
path: root/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
commitc15e5b0a0dbdaf8612bdcbba1deedcb77bed1045 (patch)
treece99d0dd7913820e60681b1523026f34302dfe59 /utils/lit
parent22af4bc07bb81c22b15d7a63fb566efcab913bd9 (diff)
downloadexternal_llvm-c15e5b0a0dbdaf8612bdcbba1deedcb77bed1045.zip
external_llvm-c15e5b0a0dbdaf8612bdcbba1deedcb77bed1045.tar.gz
external_llvm-c15e5b0a0dbdaf8612bdcbba1deedcb77bed1045.tar.bz2
PR10867: Analogue of r169441 for when using external 'sh'. And actually run the test!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@169446 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/lit')
-rw-r--r--utils/lit/lit/TestRunner.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/lit/lit/TestRunner.py b/utils/lit/lit/TestRunner.py
index fa4880a..652e8b4 100644
--- a/utils/lit/lit/TestRunner.py
+++ b/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()