We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
testToolchainArgument
1 parent 447bb27 commit a68d7cfCopy full SHA for a68d7cf
Tests/CommandsTests/SwiftCommandStateTests.swift
@@ -335,7 +335,7 @@ final class SwiftCommandStateTests: CommandsTestCase {
335
targetArPath.pathString
336
])
337
338
-
+ try fs.createMockToolchain()
339
try fs.updatePermissions(hostSwiftcPath, isExecutable: true)
340
try fs.updatePermissions(targetSwiftcPath, isExecutable: true)
341
try fs.updatePermissions(targetArPath, isExecutable: true)
@@ -360,7 +360,7 @@ final class SwiftCommandStateTests: CommandsTestCase {
360
]
361
)
362
363
- var env: EnvironmentVariables = .process()
+ var env: EnvironmentVariables = .mockEnvironment
364
env.appendPath("SWIFTPM_CUSTOM_BIN_DIR", value: hostBinDir.pathString)
365
366
let swiftCommandState = try SwiftCommandState.makeMockState(
0 commit comments