From: Richard Smith Date: Wed, 5 Dec 2012 23:15:33 +0000 (+0000) Subject: PR10867: Analogue of r169441 for when using external 'sh'. And actually run the test! X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=c15e5b0a0dbdaf8612bdcbba1deedcb77bed1045;p=oota-llvm.git 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 --- diff --git a/test/tools/llvm-lit/lit.local.cfg b/test/tools/llvm-lit/lit.local.cfg new file mode 100644 index 00000000000..856a54932f0 --- /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 fa4880a593a..652e8b499c5 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()