From 5bdb061f14ffdf36850a78e8c05120b21fc2e81b Mon Sep 17 00:00:00 2001 From: Brendan Burns Date: Tue, 7 Oct 2014 13:26:25 -0700 Subject: [PATCH] Fix the exec test, on os x false and true have different paths, but they're in $PATH on all. --- pkg/util/exec/exec_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/util/exec/exec_test.go b/pkg/util/exec/exec_test.go index a42b7867108..41bc70a76a1 100644 --- a/pkg/util/exec/exec_test.go +++ b/pkg/util/exec/exec_test.go @@ -23,7 +23,7 @@ import ( func TestExecutorNoArgs(t *testing.T) { ex := New() - cmd := ex.Command("/bin/true") + cmd := ex.Command("true") out, err := cmd.CombinedOutput() if err != nil { t.Errorf("expected success, got %+v", err) @@ -32,7 +32,7 @@ func TestExecutorNoArgs(t *testing.T) { t.Errorf("expected no output, got %q", string(out)) } - cmd = ex.Command("/bin/false") + cmd = ex.Command("false") out, err = cmd.CombinedOutput() if err == nil { t.Errorf("expected failure, got nil error")