Skip to content

Commit

Permalink
Fix end-to-end tests
Browse files Browse the repository at this point in the history
  • Loading branch information
antoniusnaumann committed Aug 9, 2024
1 parent 1a5e2cc commit 74eb5bc
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions testing/end-to-end/init.swift
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,12 @@ guard fileExists(atPath: "\(projectName)/src/lib.rs") else {

print("Running tests for cargo swift init in udl mode...")

let cargoSwiftInit = Process()
let projectName = "ExampleProject"
let cargoSwiftInitUdl = Process()
cargoSwiftInit.executableURL = URL(fileURLWithPath: "/usr/bin/env")
cargoSwiftInit.arguments = ["cargo", "swift", "init", projectName, "-y", "--silent", "--udl"]

try! cargoSwiftInit.run()
cargoSwiftInit.waitUntilExit()
try! cargoSwiftInitUdl.run()
cargoSwiftInitUdl.waitUntilExit()

guard dirExists(atPath: projectName) else {
error("Project directory does not exist")
Expand Down

0 comments on commit 74eb5bc

Please sign in to comment.