Skip to content

Commit 2bc3390

Browse files
authored
Disable failing SwiftBuild test on AmazonLinux 2 (#8546)
A SwiftBuild test is currently failing on Amazon Linux 2. Disable this test for now and link it to a GitHub issue.
1 parent b938328 commit 2bc3390

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Tests/CommandsTests/BuildCommandTests.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -859,6 +859,12 @@ class BuildCommandSwiftBuildTests: BuildCommandTestCases {
859859
}
860860

861861
override func testParseableInterfaces() async throws {
862+
#if os(Linux)
863+
if FileManager.default.contents(atPath: "/etc/system-release")
864+
.map { String(decoding: $0, as: UTF8.self) == "Amazon Linux release 2 (Karoo)\n" } ?? false {
865+
throw XCTSkip("https://github.com/swiftlang/swift-package-manager/issues/8545: Test currently fails on Amazon Linux 2")
866+
}
867+
#endif
862868
try await fixture(name: "Miscellaneous/ParseableInterfaces") { fixturePath in
863869
do {
864870
let result = try await build(["--enable-parseable-module-interfaces"], packagePath: fixturePath)

0 commit comments

Comments
 (0)