mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 14:37:00 +00:00
Fix hack/e2e.go --ctl output
Export the KUBE_CONFIG_FILE environment variable pointing to the test output when calling cluster/kubectl.sh directly. Tested by running: $ go run ./hack/e2e.go -v -ctl='version --match-server-version=false'
This commit is contained in:
parent
e63ccfff6c
commit
162d7a00b3
@ -150,6 +150,7 @@ func main() {
|
||||
switch {
|
||||
case *ctlCmd != "":
|
||||
ctlArgs := strings.Fields(*ctlCmd)
|
||||
os.Setenv("KUBE_CONFIG_FILE", "config-test.sh")
|
||||
failure = !finishRunning("'kubectl "+*ctlCmd+"'", exec.Command(path.Join(versionRoot, "cluster/kubectl.sh"), ctlArgs...))
|
||||
case *test:
|
||||
failure = Test()
|
||||
|
Loading…
Reference in New Issue
Block a user