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
|
end
|
||||||
|
|
||||||
def check_results
|
def check_results
|
||||||
status = :passed
|
steps.all? do |step|
|
||||||
steps.each do |step|
|
|
||||||
case step.status
|
case step.status
|
||||||
when :passed then next
|
when :passed then true
|
||||||
when :running then raise
|
when :running then raise
|
||||||
when :failed then status = :failed
|
when :failed then false
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
status == :passed
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def formulae
|
def formulae
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user