mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 19:31:44 +00:00
Merge pull request #28303 from ixdy/make-node-e2e-fail
Make node e2e exit nonzero on test failures
This commit is contained in:
commit
3228a51f0b
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user