Skip to content

Commit c2b77f2

Browse files
committed
Disable failing SwiftBuild test on AmazonLinux 2
A SwiftBuild test is currently failing on Amazon Linux 2. Disable this test for now and link it to a GitHub issue.
1 parent 95ce2a3 commit c2b77f2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Tests/CommandsTests/BuildCommandTests.swift

+6
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" } {
865+
throw XCTSkip("https://github.com/swiftlang/swift-package-manager/issues/8545: Test current 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)