Skip to content

Commit a43e899

Browse files
nkcsgexiartemcm
andcommitted
Update Tests/SwiftDriverTests/ExplicitModuleBuildTests.swift
Co-authored-by: Artem Chikin <[email protected]>
1 parent 803cdb1 commit a43e899

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Sources/SwiftDriver/Jobs/PrebuiltModulesJob.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,9 @@ public class SwiftAdopter: Codable {
269269

270270
static public func emitSummary(_ adopters: [SwiftAdopter], to logDir: AbsolutePath?) throws {
271271
guard let logDir = logDir else { return }
272+
if !localFileSystem.exists(logDir) {
273+
try localFileSystem.createDirectory(logDir, recursive: true)
274+
}
272275
let data = try JSONEncoder().encode(adopters)
273276
if let json = try? JSONSerialization.jsonObject(with: data, options: .mutableContainers),
274277
let jsonData = try? JSONSerialization.data(withJSONObject: json, options: .prettyPrinted) {

Tests/SwiftDriverTests/ExplicitModuleBuildTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1510,7 +1510,7 @@ final class ExplicitModuleBuildTests: XCTestCase {
15101510
try abiCheckJobs.forEach { try checkABICheckingJob($0) }
15111511
}
15121512
}
1513-
func testPrebuiltModuleIntenralSDK() throws {
1513+
func testPrebuiltModuleInternalSDK() throws {
15141514
let mockSDKPath = testInputsPath.appending(component: "mock-sdk.Internal.sdk")
15151515
let mockSDKPathStr: String = mockSDKPath.pathString
15161516
let collector = try SDKPrebuiltModuleInputsCollector(VirtualPath(path: mockSDKPathStr).absolutePath!, DiagnosticsEngine())

0 commit comments

Comments
 (0)