Skip to content

Commit

Permalink
remove passInEnv change
Browse files Browse the repository at this point in the history
  • Loading branch information
faec committed Apr 3, 2024
1 parent 135bc66 commit aa56754
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions dev-tools/mage/integtest.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ import (
"errors"
"fmt"
"os"
"os/exec"
"path/filepath"
"strconv"

Expand Down Expand Up @@ -221,13 +220,7 @@ func NewDockerIntegrationRunner(passThroughEnvVars ...string) (*IntegrationRunne
if !ok {
return nil, fmt.Errorf("docker integration test runner not registered")
}
passInEnv := make(map[string]string)
if path, err := exec.LookPath("docker"); err == nil {
dockerDir := filepath.Dir(path)
passInEnv["PATH"] = dockerDir

}
return initRunner(tester, cwd, passInEnv, passThroughEnvVars...)
return initRunner(tester, cwd, nil, passThroughEnvVars...)
}

func initRunner(tester IntegrationTester, dir string, passInEnv map[string]string, passThroughEnvVars ...string) (*IntegrationRunner, error) {
Expand Down

0 comments on commit aa56754

Please sign in to comment.