PR10867: Analogue of r169441 for when using external 'sh'. And actually run the test!
authorRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 5 Dec 2012 23:15:33 +0000 (23:15 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 5 Dec 2012 23:15:33 +0000 (23:15 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@169446 91177308-0d34-0410-b5e6-96231b3b80d8

test/tools/llvm-lit/lit.local.cfg [new file with mode: 0644]
utils/lit/lit/TestRunner.py

diff --git a/test/tools/llvm-lit/lit.local.cfg b/test/tools/llvm-lit/lit.local.cfg
new file mode 100644 (file)
index 0000000..856a549
--- /dev/null
@@ -0,0 +1 @@
+config.suffixes = ['.c']
index fa4880a593a6c891eb861a6b3f855a5c021b2d8f..652e8b499c5cd6521e76bff80627ae7d31f72c14 100644 (file)
@@ -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()