Ensure to exit with a non-zero status code when a timeout occurs and we don't complete all the jobs.
This commit is contained in:
parent
1b78e9e6b1
commit
8295809d79
|
@ -312,6 +312,9 @@ OUTER:
|
|||
c.Ui.Info(fmt.Sprintf("Completed in %0.2f seconds",
|
||||
float64(time.Now().Sub(start))/float64(time.Second)))
|
||||
}
|
||||
if exitCount < ackCount {
|
||||
badExit++
|
||||
}
|
||||
break OUTER
|
||||
|
||||
case <-errCh:
|
||||
|
|
Loading…
Reference in a new issue