Skip to content

Commit c15e5b0

Browse files
committed
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
1 parent 22af4bc commit c15e5b0

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

test/tools/llvm-lit/lit.local.cfg

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
config.suffixes = ['.c']

utils/lit/lit/TestRunner.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ def executeScript(test, litConfig, tmpBase, commands, cwd):
357357
if isWin32CMDEXE:
358358
f.write('\nif %ERRORLEVEL% NEQ 0 EXIT\n'.join(commands))
359359
else:
360-
f.write(' &&\n'.join(commands))
360+
f.write('{ ' + '; } &&\n{ '.join(commands) + '; }')
361361
f.write('\n')
362362
f.close()
363363

0 commit comments

Comments
 (0)