From d5b31d13e64b83a5363a16a9a54a1bd3ca949116 Mon Sep 17 00:00:00 2001 From: Priya Wadhwa Date: Wed, 22 Jul 2020 16:08:31 -0400 Subject: [PATCH] add current minikube binary to beginning of the path --- test/integration/skaffold_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/integration/skaffold_test.go b/test/integration/skaffold_test.go index 937c31268e..0f9852140a 100644 --- a/test/integration/skaffold_test.go +++ b/test/integration/skaffold_test.go @@ -61,7 +61,7 @@ func TestSkaffold(t *testing.T) { if err != nil { t.Fatalf("absolute path to minikube binary: %v", err) } - os.Setenv("PATH", fmt.Sprintf("%s:%s", os.Getenv("PATH"), filepath.Dir(abs))) + os.Setenv("PATH", fmt.Sprintf("%s:%s", filepath.Dir(abs), os.Getenv("PATH"))) // make sure 'docker' and 'minikube' are on PATH for _, binary := range []string{"minikube", "docker"} { rr, err := Run(t, exec.CommandContext(ctx, "which", binary))