File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -129,6 +129,16 @@ package actor SkipUnless {
129129 try XCTSkipUnless ( Platform . current == . windows, message)
130130 }
131131
132+ package static func platformIsNotAmazonLinux( _ message: String ) throws {
133+ guard Platform . current == . linux,
134+ let release = try ? String ( contentsOf: URL ( filePath: " /etc/system-release " ) , encoding: . utf8)
135+ else {
136+ return
137+ }
138+
139+ try XCTSkipUnless ( !release. hasPrefix ( " Amazon " ) , message)
140+ }
141+
132142 package static func platformSupportsTaskPriorityElevation( ) throws {
133143 #if os(macOS)
134144 guard #available( macOS 14 . 0 , * ) else {
@@ -149,6 +159,7 @@ package actor SkipUnless {
149159 Platform . current != . windows,
150160 " Temporarily skipping as we need to fix these tests to use the cmake-built swift-syntax libraries on Windows. "
151161 )
162+ try SkipUnless . platformIsNotAmazonLinux ( " https://github.com/swiftlang/sourcekit-lsp/issues/2350 " )
152163
153164 return try await shared. skipUnlessSupported ( file: file, line: line) {
154165 do {
You can’t perform that action at this time.
0 commit comments