add current minikube binary to beginning of the path

pull/8779/head
Priya Wadhwa 2020-07-22 16:08:31 -04:00
parent d4a33b3f98
commit d5b31d13e6
1 changed files with 1 additions and 1 deletions

View File

@ -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))