Skip to content

Commit 9f5835c

Browse files
committed
Invoke bash directly
1 parent c67c79d commit 9f5835c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Sources/LiteSupport/TestRunner.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ class TestRunner {
252252
let exitCode: Int
253253
let bash = file.makeCommandLine(line, substitutor: substitutor)
254254
do {
255-
let args = bash.split(separator: " ").map { String($0 as Substring) }
255+
let args = ["/bin/bash", "-c", bash]
256256
let result = try Process.popen(arguments: args)
257257
stdout = try result.utf8Output().chomp()
258258
stderr = ""

Sources/lite-test/main.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import LiteSupport
77
/// Runs `lite` looking for `.test` files and executing them.
88
do {
99
let allPassed = try runLite(
10-
substitutions: [("echo", "echo")],
10+
substitutions: [("echo", "/bin/echo")],
1111
pathExtensions: ["test"],
1212
testDirPath: nil,
1313
testLinePrefix: "//",

0 commit comments

Comments
 (0)