mirror of https://github.com/k3s-io/k3s
pkg/util/exec: don't specify paths for echo
`ex.Command()` already searches the binary in PATH, no need to manually specify it. `pkg/util/exec` tests fail in non-conventional environments due to this (e.g. NixOS).pull/6/head
parent
5acf6fb03d
commit
81fb8e1e11
|
@ -64,7 +64,7 @@ func TestExecutorNoArgs(t *testing.T) {
|
|||
func TestExecutorWithArgs(t *testing.T) {
|
||||
ex := New()
|
||||
|
||||
cmd := ex.Command("/bin/echo", "stdout")
|
||||
cmd := ex.Command("echo", "stdout")
|
||||
out, err := cmd.CombinedOutput()
|
||||
if err != nil {
|
||||
t.Errorf("expected success, got %+v", err)
|
||||
|
|
Loading…
Reference in New Issue