@@ -618,11 +618,20 @@ final class SwiftSDKBundleTests: XCTestCase {
618
618
let ( config, fileSystem) = try await createConfigurationStore ( )
619
619
var args = SwiftSDK . PathsConfiguration < String > ( )
620
620
args. sdkRootPath = " /some/sdk/root/path "
621
- let configSuccess = try config. configure ( sdkID: testArtifactID, targetTriple: targetTriple. tripleString, showConfiguration: false , resetConfiguration: false , config: args)
621
+ let configSuccess = try config. configure (
622
+ sdkID: testArtifactID,
623
+ targetTriple: targetTriple. tripleString,
624
+ showConfiguration: false ,
625
+ resetConfiguration: false ,
626
+ config: args
627
+ )
622
628
XCTAssertTrue ( configSuccess)
623
629
XCTAssertTrue ( fileSystem. isFile ( targetTripleConfigPath) )
624
630
625
- let updatedConfig = try config. readConfiguration ( sdkID: testArtifactID, targetTriple: targetTriple)
631
+ let updatedConfig = try config. readConfiguration (
632
+ sdkID: testArtifactID,
633
+ targetTriple: targetTriple
634
+ )
626
635
XCTAssertEqual ( args. sdkRootPath, updatedConfig? . pathsConfiguration. sdkRootPath? . pathString)
627
636
}
628
637
@@ -631,11 +640,23 @@ final class SwiftSDKBundleTests: XCTestCase {
631
640
var args = SwiftSDK . PathsConfiguration < String > ( )
632
641
args. sdkRootPath = " /some/sdk/root/path "
633
642
// an empty targetTriple will configure all triples
634
- let configSuccess = try config. configure ( sdkID: testArtifactID, targetTriple: nil , showConfiguration: false , resetConfiguration: false , config: args)
643
+ let configSuccess = try config. configure (
644
+ sdkID: testArtifactID,
645
+ targetTriple: nil ,
646
+ showConfiguration: false ,
647
+ resetConfiguration: false ,
648
+ config: args
649
+ )
635
650
XCTAssertTrue ( configSuccess)
636
651
XCTAssertTrue ( fileSystem. isFile ( targetTripleConfigPath) )
637
652
638
- let resetSuccess = try config. configure ( sdkID: testArtifactID, targetTriple: nil , showConfiguration: false , resetConfiguration: true , config: args)
653
+ let resetSuccess = try config. configure (
654
+ sdkID: testArtifactID,
655
+ targetTriple: nil ,
656
+ showConfiguration: false ,
657
+ resetConfiguration: true ,
658
+ config: args
659
+ )
639
660
XCTAssertTrue ( resetSuccess, " Reset configuration should succeed " )
640
661
XCTAssertFalse ( fileSystem. isFile ( targetTripleConfigPath) , " Reset configuration should clear configuration folder " )
641
662
}
0 commit comments