aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/test-bot.rb
diff options
context:
space:
mode:
authorMike McQuaid2014-09-20 14:25:51 +0100
committerMike McQuaid2014-09-24 15:22:46 -0700
commit81c26e822f6c79ed98e7bd8fd3f9ffa2d684fe4d (patch)
treef35b3565eaa72914f7d489018ec23a60a03f2e63 /Library/Homebrew/cmd/test-bot.rb
parent7b39cbdd97d0a2d63a18a312b937edfab7fdd570 (diff)
downloadhomebrew-81c26e822f6c79ed98e7bd8fd3f9ffa2d684fe4d.tar.bz2
brew-test-bot: fix error detection logic.
Diffstat (limited to 'Library/Homebrew/cmd/test-bot.rb')
-rwxr-xr-xLibrary/Homebrew/cmd/test-bot.rb4
1 files changed, 2 insertions, 2 deletions
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