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:
Filipe Brandenburger 2015-02-06 14:27:59 -08:00
parent e63ccfff6c
commit 162d7a00b3

View File

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