Skip to content

Commit

Permalink
fix(tests): fix input paths in parsecmd test (#3275)
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaeldtinoco authored Jun 27, 2023
1 parent 18643bc commit 8375fe4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/integration/exec_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func Test_ParseCmd(t *testing.T) {
expectedErrMsg: "no command specified",
},
{
input: "echo hello",
input: "/usr/bin/echo hello",
expectedCmd: "/usr/bin/echo",
expectedArgs: []string{"hello"},
expectedErrMsg: "",
Expand All @@ -33,13 +33,13 @@ func Test_ParseCmd(t *testing.T) {
expectedErrMsg: "",
},
{
input: "echo 'hello world'",
input: "/usr/bin/echo 'hello world'",
expectedCmd: "/usr/bin/echo",
expectedArgs: []string{"hello world"},
expectedErrMsg: "",
},
{
input: "bash -c 'echo hello world'",
input: "/usr/bin/bash -c 'echo hello world'",
expectedCmd: "/usr/bin/bash",
expectedArgs: []string{"-c", "echo hello world"},
expectedErrMsg: "",
Expand Down

0 comments on commit 8375fe4

Please sign in to comment.