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 {
172
172
#endif
173
173
}
174
174
175
+ package static func skipInGitHubActions( _ comment: Comment ? = nil ) -> Self {
176
+ return . skipIfEnvironmentVariableSet( key: " GITHUB_ACTIONS " )
177
+ }
178
+
175
179
package static func requireClangFeatures( _ requiredFeatures: DiscoveredClangToolSpecInfo . FeatureFlag ... ) -> Self {
176
180
enabled ( " Clang compiler does not support features: \( requiredFeatures) " ) {
177
181
let features = try await ConditionTraitContext . shared. clangFeatures
@@ -235,8 +239,8 @@ extension Trait where Self == Testing.ConditionTrait {
235
239
}
236
240
}
237
241
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) ' " ) {
240
244
getEnvironmentVariable ( key) != nil
241
245
}
242
246
}
Original file line number Diff line number Diff line change @@ -442,7 +442,8 @@ fileprivate struct PBXCpTests: CoreBasedTests {
442
442
fileprivate let buffer0 = [ UInt8] ( repeating: 0xAA , count: 1024 * 513 )
443
443
fileprivate let buffer1 = [ UInt8] ( repeating: 0x55 , count: 1024 * 513 )
444
444
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 " ) )
446
447
func largerFile( ) async throws {
447
448
try await withTemporaryDirectory { tmp in
448
449
// Test copying a large file.
You can’t perform that action at this time.
0 commit comments