From 81fb8e1e115a72032ccbafec2deace54c9918d79 Mon Sep 17 00:00:00 2001 From: Tamer Tas Date: Mon, 8 Aug 2016 16:17:25 +0300 Subject: [PATCH] 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). --- pkg/util/exec/exec_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/util/exec/exec_test.go b/pkg/util/exec/exec_test.go index 833cef8b1a7..8b22d324c0e 100644 --- a/pkg/util/exec/exec_test.go +++ b/pkg/util/exec/exec_test.go @@ -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)