Skip to content

Commit 9905db8

Browse files
committed
Merge remote-tracking branch 'origin/master' into master-next
2 parents b893bac + c7ca64b commit 9905db8

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

test/lit.cfg

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,9 +170,12 @@ kIsWindows = platform.system() == 'Windows'
170170

171171
# Choose between lit's internal shell pipeline runner and a real shell. If
172172
# LIT_USE_INTERNAL_SHELL is in the environment, we use that as an override.
173-
use_lit_shell = os.environ.get('LIT_USE_INTERNAL_SHELL', not kIsWindows)
173+
use_lit_shell = os.environ.get('LIT_USE_INTERNAL_SHELL', kIsWindows)
174+
if not use_lit_shell:
175+
config.available_features.add('shell')
176+
174177
config.test_format = swift_test.SwiftTest(coverage_mode=config.coverage_mode,
175-
execute_external=use_lit_shell)
178+
execute_external=not use_lit_shell)
176179

177180
# suffixes: A list of file extensions to treat as test files.
178181
config.suffixes = ['.swift', '.ll', '.sil', '.gyb', '.m', '.swiftinterface',

0 commit comments

Comments
 (0)