From 2c4902f26c74cb82e60d8647f4873c70a26e61bb Mon Sep 17 00:00:00 2001 From: Rafael David Tinoco Date: Tue, 27 Jun 2023 01:37:02 +0000 Subject: [PATCH] fix(tests): fix input paths in parsecmd test --- tests/integration/exec_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/integration/exec_test.go b/tests/integration/exec_test.go index 0f159500cfab..e38357a55770 100644 --- a/tests/integration/exec_test.go +++ b/tests/integration/exec_test.go @@ -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: "", @@ -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: "",