From f6d36ddc751db5af15a783507ff9f8ef2822aa9e Mon Sep 17 00:00:00 2001 From: Sam Khouri Date: Tue, 22 Apr 2025 09:22:20 -0400 Subject: [PATCH] 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. --- Tests/CommandsTests/BuildCommandTests.swift | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Tests/CommandsTests/BuildCommandTests.swift b/Tests/CommandsTests/BuildCommandTests.swift index e4c607eff96..ca39fc6bbce 100644 --- a/Tests/CommandsTests/BuildCommandTests.swift +++ b/Tests/CommandsTests/BuildCommandTests.swift @@ -859,6 +859,12 @@ class BuildCommandSwiftBuildTests: BuildCommandTestCases { } override func testParseableInterfaces() async throws { + #if os(Linux) + if FileManager.default.contents(atPath: "/etc/system-release") + .map { String(decoding: $0, as: UTF8.self) == "Amazon Linux release 2 (Karoo)\n" } ?? false { + throw XCTSkip("https://github.com/swiftlang/swift-package-manager/issues/8545: Test currently fails on Amazon Linux 2") + } + #endif try await fixture(name: "Miscellaneous/ParseableInterfaces") { fixturePath in do { let result = try await build(["--enable-parseable-module-interfaces"], packagePath: fixturePath)