From 81c26e822f6c79ed98e7bd8fd3f9ffa2d684fe4d Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Sat, 20 Sep 2014 14:25:51 +0100 Subject: brew-test-bot: fix error detection logic. --- Library/Homebrew/cmd/test-bot.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Library') diff --git a/Library/Homebrew/cmd/test-bot.rb b/Library/Homebrew/cmd/test-bot.rb index 95bbc4686..d837b1b36 100755 --- a/Library/Homebrew/cmd/test-bot.rb +++ b/Library/Homebrew/cmd/test-bot.rb @@ -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 -- cgit v1.2.3