test-bot: fail fast in check_results

Closes Homebrew/homebrew#36893.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
Xu Cheng 2015-02-17 18:02:05 +08:00 committed by Mike McQuaid
parent f204e2e608
commit 86cd5d2f24

View File

@ -549,15 +549,13 @@ module Homebrew
end
def check_results
status = :passed
steps.each do |step|
steps.all? do |step|
case step.status
when :passed then next
when :passed then true
when :running then raise
when :failed then status = :failed
when :failed then false
end
end
status == :passed
end
def formulae