Make node e2e exit nonzero on test failures

pull/6/head
Jeff Grafton 2016-06-30 11:25:40 -07:00
parent 61a9358dbd
commit 821e6ec2a7
1 changed files with 2 additions and 5 deletions

View File

@ -226,14 +226,11 @@ func RunRemote(archive string, host string, cleanup bool, junitFileNumber int, s
glog.Infof("Copying test artifacts from %s", host)
scpErr := getTestArtifacts(host, tmp)
exitOk := true
if scpErr != nil {
// Only exit non-0 if the scp failed
exitOk = false
aggErrs = append(aggErrs, err)
aggErrs = append(aggErrs, scpErr)
}
return output, exitOk, utilerrors.NewAggregate(aggErrs)
return output, len(aggErrs) == 0, utilerrors.NewAggregate(aggErrs)
}
func getTestArtifacts(host, testDir string) error {