@@ -3069,22 +3069,28 @@ struct PackageCommandTests {
30693069 func purgeCacheWithoutPackage(
30703070 data: BuildData ,
30713071 ) async throws {
3072- // Create a temporary directory without Package.swift
3073- try await fixture ( name: " Miscellaneous " ) { fixturePath in
3074- let tempDir = fixturePath. appending ( " empty-dir-for-purge-test " )
3075- try localFileSystem. createDirectory ( tempDir, recursive: true )
3076-
3077- // Use a unique temporary cache directory to avoid conflicts with parallel tests
3078- try await withTemporaryDirectory ( removeTreeOnDeinit: true ) { cacheDir in
3079- let result = try await executeSwiftPackage (
3080- tempDir,
3081- configuration: data. config,
3082- extraArgs: [ " purge-cache " , " --cache-path " , cacheDir. pathString] ,
3083- buildSystem: data. buildSystem
3084- )
3072+ try await withKnownIssue (
3073+ isIntermittent: ProcessInfo . isHostAmazonLinux2 ( ) //rdar://134238535
3074+ ) {
3075+ // Create a temporary directory without Package.swift
3076+ try await fixture ( name: " Miscellaneous " ) { fixturePath in
3077+ let tempDir = fixturePath. appending ( " empty-dir-for-purge-test " )
3078+ try localFileSystem. createDirectory ( tempDir, recursive: true )
3079+
3080+ // Use a unique temporary cache directory to avoid conflicts with parallel tests
3081+ try await withTemporaryDirectory ( removeTreeOnDeinit: true ) { cacheDir in
3082+ let result = try await executeSwiftPackage (
3083+ tempDir,
3084+ configuration: data. config,
3085+ extraArgs: [ " purge-cache " , " --cache-path " , cacheDir. pathString] ,
3086+ buildSystem: data. buildSystem
3087+ )
30853088
3086- #expect( !result. stderr. contains ( " Could not find Package.swift " ) )
3089+ #expect( !result. stderr. contains ( " Could not find Package.swift " ) )
3090+ }
30873091 }
3092+ } when: {
3093+ ProcessInfo . isHostAmazonLinux2 ( )
30883094 }
30893095 }
30903096
0 commit comments