From 162d7a00b3d326a2ad4a2bb751a54f4faa93e805 Mon Sep 17 00:00:00 2001 From: Filipe Brandenburger Date: Fri, 6 Feb 2015 14:27:59 -0800 Subject: [PATCH] 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' --- hack/e2e.go | 1 + 1 file changed, 1 insertion(+) diff --git a/hack/e2e.go b/hack/e2e.go index 414b2da01f8..4a828d588ba 100644 --- a/hack/e2e.go +++ b/hack/e2e.go @@ -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()