Skip to content

Commit e069aa4

Browse files
committed
Skip tests if the env var is set to disable the swift-build dependency
1 parent eefaca2 commit e069aa4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Tests/CommandsTests/BuildCommandTests.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -462,6 +462,10 @@ final class BuildCommandTests: CommandsTestCase {
462462
}
463463
#endif
464464

465+
if ProcessInfo.processInfo.environment["SWIFTPM_NO_SWBUILD_DEPENDENCY"] != nil {
466+
throw XCTSkip("SWIFTPM_NO_SWBUILD_DEPENDENCY is set so skipping because SwiftPM doesn't have the swift-build capability built inside.")
467+
}
468+
465469
try await testBuildSystemDefaultSettings(buildSystem: "swiftbuild")
466470
}
467471

0 commit comments

Comments
 (0)