Test() was mis-tracked. Change the variable name / handling here, and

also just make it unset so that if it's ever uninitialized it's
obvious.

Fixes #4177
pull/6/head
Zach Loafman 2015-02-11 13:11:03 -08:00
parent 6c15604ccb
commit ab38a78d70
1 changed files with 4 additions and 4 deletions

View File

@ -146,21 +146,21 @@ func main() {
}
}
failure := false
success := true
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...))
success = finishRunning("'kubectl "+*ctlCmd+"'", exec.Command(path.Join(versionRoot, "cluster/kubectl.sh"), ctlArgs...))
case *test:
failure = Test()
success = Test()
}
if *down {
TearDown()
}
if failure {
if !success {
os.Exit(1)
}
}