Skip to content

Commit e19e783

Browse files
authored
Fix nightly smoke test failure (#468)
1 parent 655f8e2 commit e19e783

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Tests/SwiftlyTests/CommandLineTests.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,8 +270,9 @@ public struct CommandLineTests {
270270
func testSwift() async throws {
271271
let tmp = fs.mktemp()
272272
try await fs.mkdir(atPath: tmp)
273-
try await sys.swift().package()._init(.package_path(tmp), .type("executable")).run()
274-
try await sys.swift().build(.package_path(tmp), .configuration("release")).run()
273+
let swiftExec: Executable = .path(try Executable.name("swift").resolveExecutablePath(in: .inherit))
274+
try await sys.swift(executable: swiftExec).package()._init(.package_path(tmp), .type("executable")).run()
275+
try await sys.swift(executable: swiftExec).build(.package_path(tmp), .configuration("release")).run()
275276
}
276277

277278
@Test func testMake() async throws {

0 commit comments

Comments
 (0)