[llvm-commits] [llvm] r169446 - in /llvm/trunk: test/tools/llvm-lit/lit.local.cfg utils/lit/lit/TestRunner.py
Richard Smith
richard-llvm at metafoo.co.uk
Wed Dec 5 15:15:33 PST 2012
Author: rsmith
Date: Wed Dec 5 17:15:33 2012
New Revision: 169446
URL: http://llvm.org/viewvc/llvm-project?rev=169446&view=rev
Log:
PR10867: Analogue of r169441 for when using external 'sh'. And actually run the test!
Added:
llvm/trunk/test/tools/llvm-lit/lit.local.cfg
Modified:
llvm/trunk/utils/lit/lit/TestRunner.py
Added: llvm/trunk/test/tools/llvm-lit/lit.local.cfg
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-lit/lit.local.cfg?rev=169446&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-lit/lit.local.cfg (added)
+++ llvm/trunk/test/tools/llvm-lit/lit.local.cfg Wed Dec 5 17:15:33 2012
@@ -0,0 +1 @@
+config.suffixes = ['.c']
Modified: llvm/trunk/utils/lit/lit/TestRunner.py
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/lit/lit/TestRunner.py?rev=169446&r1=169445&r2=169446&view=diff
==============================================================================
--- llvm/trunk/utils/lit/lit/TestRunner.py (original)
+++ llvm/trunk/utils/lit/lit/TestRunner.py Wed Dec 5 17:15:33 2012
@@ -357,7 +357,7 @@
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()
More information about the llvm-commits
mailing list