Skip to content

Commit bc35b9c

Browse files
authored
Skip SDK dependent tests in macOS bootstrap (#6480)
This is manifesting itself as `cannot find 'XCTAssertEqual' in scope` on Swift CI again, but instead of disabling these tests wholesale like we did before, we want to take a more targetted approach. rdar://108519765
1 parent 5c3fcbc commit bc35b9c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Utilities/bootstrap

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,9 +367,14 @@ def test(args):
367367
"""Builds SwiftPM, then tests itself."""
368368
build(args)
369369

370+
if '-macosx' in args.build_target:
371+
extra_env = ["SWIFTCI_DISABLE_SDK_DEPENDENT_TESTS=YES"]
372+
else:
373+
extra_env = []
374+
370375
note("Testing")
371376
parse_test_args(args)
372-
cmd = [
377+
cmd = extra_env + [
373378
"SWIFT_EXEC=" + args.swiftc_path,
374379
"SWIFT_DRIVER_SWIFT_EXEC=" + args.swiftc_path,
375380
os.path.join(args.bin_dir, "swift-test")

0 commit comments

Comments
 (0)