test-bot: fail fast in check_results
Closes Homebrew/homebrew#36893. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
parent
f204e2e608
commit
86cd5d2f24
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user