Skip to content

Commit 82d5f90

Browse files
committed
tests: Include spaces in temporary build directory paths
This helps to detect Shell.run() calls which do not quote path names appropriately.
1 parent af1bea6 commit 82d5f90

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Tests/SwiftSDKGeneratorTests/EndToEndTests.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ extension FileManager {
3232
// https://github.com/swiftlang/swift-corelibs-foundation/blob/21b3196b33a64d53a0989881fc9a486227b4a316/Sources/Foundation/FileManager.swift#L152
3333
var logger = logger
3434

35-
let temporaryDirectory = self.temporaryDirectory.appendingPathComponent(UUID().uuidString)
35+
// Include spaces in the temporary directory name to help detect Shell.run() calls which do not quote path names appropriately
36+
let temporaryDirectory = self.temporaryDirectory.appendingPathComponent("\(UUID().uuidString) with spaces")
3637
logger[metadataKey: "temporaryDirectory"] = "\(temporaryDirectory.path)"
3738

3839
try createDirectory(at: temporaryDirectory, withIntermediateDirectories: false)

0 commit comments

Comments
 (0)