Skip to content

Commit 4db1e84

Browse files
authored
test: make tests pass on macOS (#4805)
`/usr/bin/sh` is a Linux-ism, and then only some some distros. Most Unices, including macOS, but the Bourne shell on `/bin/sh` because "obviously" the shell needs to got in the boot disk.
1 parent 8dd83e6 commit 4db1e84

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

internal/command/command_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -200,17 +200,17 @@ func TestRunStreaming(t *testing.T) {
200200
}{
201201
{
202202
name: "simple output and err",
203-
command: "/usr/bin/sh",
203+
command: "/bin/sh",
204204
args: []string{"-c", "echo test-output && echo >&2 test-error"},
205205
wantOut: "test-output\n",
206206
wantErr: "test-error\n",
207207
},
208208
{
209209
name: "verbose output",
210-
command: "/usr/bin/sh",
210+
command: "/bin/sh",
211211
args: []string{"-c", "echo test-output"},
212212
verbose: true,
213-
wantOut: "/usr/bin/sh -c echo test-output\ntest-output\n",
213+
wantOut: "/bin/sh -c echo test-output\ntest-output\n",
214214
},
215215
} {
216216
t.Run(test.name, func(t *testing.T) {

0 commit comments

Comments
 (0)