brew-test-bot: fix error detection logic.

This commit is contained in:
Mike McQuaid 2014-09-20 14:25:51 +01:00
parent b7c9025d93
commit 7989b2169f

View File

@ -591,12 +591,12 @@ module Homebrew
if ARGV.named.empty?
# With no arguments just build the most recent commit.
test = Test.new('HEAD', tap)
any_errors = test.run
any_errors = !test.run
tests << test
else
ARGV.named.each do |argument|
test = Test.new(argument, tap)
any_errors = test.run or any_errors
any_errors ||= !test.run
tests << test
end
end