File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed
Tests/SWBTaskExecutionTests Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -172,6 +172,10 @@ extension Trait where Self == Testing.ConditionTrait {
172172 #endif
173173 }
174174
175+ package static func skipInGitHubActions(_ comment: Comment? = nil) -> Self {
176+ return .skipIfEnvironmentVariableSet(key: "GITHUB_ACTIONS")
177+ }
178+
175179 package static func requireClangFeatures(_ requiredFeatures: DiscoveredClangToolSpecInfo.FeatureFlag...) -> Self {
176180 enabled("Clang compiler does not support features: \(requiredFeatures)") {
177181 let features = try await ConditionTraitContext.shared.clangFeatures
@@ -235,8 +239,8 @@ extension Trait where Self == Testing.ConditionTrait {
235239 }
236240 }
237241
238- package static func skipIfEnvironmentVariableSet(key: EnvironmentKey) -> Self {
239- disabled("environment sets '\(key)'") {
242+ package static func skipIfEnvironmentVariableSet(key: EnvironmentKey, _ comment: Comment? = nil ) -> Self {
243+ disabled(comment ?? "environment sets '\(key)'") {
240244 getEnvironmentVariable(key) != nil
241245 }
242246 }
Original file line number Diff line number Diff line change @@ -442,7 +442,8 @@ fileprivate struct PBXCpTests: CoreBasedTests {
442442 fileprivate let buffer0 = [UInt8](repeating: 0xAA, count: 1024 * 513)
443443 fileprivate let buffer1 = [UInt8](repeating: 0x55, count: 1024 * 513)
444444
445- @Test(.skipHostOS(.windows, "LocalFS needs to use stat64 on windows...."))
445+ @Test(.skipHostOS(.windows, "LocalFS needs to use stat64 on windows...."),
446+ .skipInGitHubActions("GitHub action runners do not have enough storage space for this test"))
446447 func largerFile() async throws {
447448 try await withTemporaryDirectory { tmp in
448449 // Test copying a large file.
You can’t perform that action at this time.
0 commit comments