Skip to content

Commit a68d7cf

Browse files
committed
[Tests] NFC: Use mock environment for testToolchainArgument test-case
1 parent 447bb27 commit a68d7cf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tests/CommandsTests/SwiftCommandStateTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ final class SwiftCommandStateTests: CommandsTestCase {
335335
targetArPath.pathString
336336
])
337337

338-
338+
try fs.createMockToolchain()
339339
try fs.updatePermissions(hostSwiftcPath, isExecutable: true)
340340
try fs.updatePermissions(targetSwiftcPath, isExecutable: true)
341341
try fs.updatePermissions(targetArPath, isExecutable: true)
@@ -360,7 +360,7 @@ final class SwiftCommandStateTests: CommandsTestCase {
360360
]
361361
)
362362

363-
var env: EnvironmentVariables = .process()
363+
var env: EnvironmentVariables = .mockEnvironment
364364
env.appendPath("SWIFTPM_CUSTOM_BIN_DIR", value: hostBinDir.pathString)
365365

366366
let swiftCommandState = try SwiftCommandState.makeMockState(

0 commit comments

Comments
 (0)