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:
Ralph Caraveo 2017-04-12 17:51:16 -07:00
parent 1b78e9e6b1
commit 8295809d79
1 changed files with 3 additions and 0 deletions

View File

@ -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: