diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-12-05 23:15:33 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-12-05 23:15:33 +0000 |
commit | c15e5b0a0dbdaf8612bdcbba1deedcb77bed1045 (patch) | |
tree | ce99d0dd7913820e60681b1523026f34302dfe59 | |
parent | 22af4bc07bb81c22b15d7a63fb566efcab913bd9 (diff) | |
download | external_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
-rw-r--r-- | test/tools/llvm-lit/lit.local.cfg | 1 | ||||
-rw-r--r-- | utils/lit/lit/TestRunner.py | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/test/tools/llvm-lit/lit.local.cfg b/test/tools/llvm-lit/lit.local.cfg new file mode 100644 index 0000000..856a549 --- /dev/null +++ b/test/tools/llvm-lit/lit.local.cfg @@ -0,0 +1 @@ +config.suffixes = ['.c'] 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() |