Skip to content

Commit 107d270

Browse files
committed
Skip testing incompatible combinations
1 parent 1815858 commit 107d270

File tree

1 file changed

+12
-0
lines changed
  • openapi/TestSwiftOrgClient/swiftorgClient

1 file changed

+12
-0
lines changed

openapi/TestSwiftOrgClient/swiftorgClient/Tool.swift

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,20 @@ struct Tool {
5252
work: { _ = try await client.listReleases().ok.body.json }
5353
),
5454
]
55+
struct DevToolchainBranchPlatform: Hashable {
56+
var branch: Components.Schemas.KnownSourceBranch
57+
var platform: Components.Schemas.KnownPlatformIdentifier
58+
}
59+
let excluded: Set<DevToolchainBranchPlatform> = [
60+
.init(branch: ._6_0, platform: .debian12),
61+
.init(branch: ._6_0, platform: .fedora39),
62+
.init(branch: ._6_0, platform: .ubuntu2404),
63+
]
5564
for branch in Components.Schemas.KnownSourceBranch.allCases {
5665
for platform in Components.Schemas.KnownPlatformIdentifier.allCases {
66+
guard !excluded.contains(.init(branch: branch, platform: platform)) else {
67+
continue
68+
}
5769
tests.append(
5870
.init(
5971
name: "listDevToolchains(\(branch.rawValue), \(platform.rawValue))",

0 commit comments

Comments
 (0)