test-bot: rename variable to avoid shadowing.

Closes Homebrew/homebrew#37487.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
Mike McQuaid 2015-03-07 15:36:07 +00:00
parent fb99393422
commit 5206a2523e

View File

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