Skip to content

Commit a833084

Browse files
committed
Test: mark test withKnownIssue
A test is failing when building an Ubuntu 22.04 toolchain. The failing test runs against SwiftBUild build system. Mark the test as withKnownIssues until and track a GitHub to fix this' properly.
1 parent 41d0dc5 commit a833084

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Tests/CommandsTests/TestCommandTests.swift

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,13 +220,17 @@ struct TestCommandTests {
220220
}
221221

222222
@Test(
223+
.issue("https://github.com/swiftlang/swift-package-manager/issues/8955", relationship: .defect),
223224
arguments: SupportedBuildSystemOnAllPlatforms, BuildConfiguration.allCases,
224225
)
225226
func enableDisableTestabilityDefaultShouldRunWithTestability(
226227
buildSystem: BuildSystemProvider.Kind,
227228
configuration: BuildConfiguration,
228229
) async throws {
229-
try await withKnownIssue("fails to build the package") {
230+
try await withKnownIssue(
231+
"fails to build the package",
232+
isIntermittent: (CiEnvironment.runningInSmokeTestPipeline),
233+
) {
230234
// default should run with testability
231235
try await fixture(name: "Miscellaneous/TestableExe") { fixturePath in
232236
let result = try await execute(
@@ -238,7 +242,7 @@ struct TestCommandTests {
238242
#expect(result.stderr.contains("-enable-testing"))
239243
}
240244
} when: {
241-
(buildSystem == .swiftbuild && .linux == ProcessInfo.hostOperatingSystem && CiEnvironment.runningInSelfHostedPipeline)
245+
(buildSystem == .swiftbuild && .linux == ProcessInfo.hostOperatingSystem)
242246
|| (buildSystem == .swiftbuild && .windows == ProcessInfo.hostOperatingSystem && CiEnvironment.runningInSelfHostedPipeline)
243247
}
244248
}

0 commit comments

Comments
 (0)