Skip to content

Commit ea542bc

Browse files
committed
Disable testable imports when testing swift-format
Enabling testable imports caused us to re-compile swift-syntax and swift-format for testing, which takes quite a while in release mode. This should reduce CI time by ~5 minutes.
1 parent e1b18cf commit ea542bc

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

build-script-helper.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,10 @@ def invoke_swift_single_product(package_path, swift_exec, action, product, build
189189
args = [swift_exec, action]
190190
args += get_swiftpm_options(package_path, build_path, multiroot_data_file, configuration, verbose)
191191
if action == 'test':
192-
args += ['--test-product', product]
192+
args += [
193+
'--test-product', product,
194+
'--disable-testable-imports'
195+
]
193196
else:
194197
args += ['--product', product]
195198

0 commit comments

Comments
 (0)