From 362da26ff6cc46798a92c7575a50ab63aa44d2a6 Mon Sep 17 00:00:00 2001 From: Baptiste Fontaine Date: Wed, 14 Oct 2015 17:40:12 +0200 Subject: [PATCH] test-bot: ensure install_passed is always defined --- Library/Homebrew/cmd/test-bot.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Library/Homebrew/cmd/test-bot.rb b/Library/Homebrew/cmd/test-bot.rb index e109aa04cc..55a3cd1498 100644 --- a/Library/Homebrew/cmd/test-bot.rb +++ b/Library/Homebrew/cmd/test-bot.rb @@ -568,13 +568,12 @@ module Homebrew install_args << canonical_formula_name # Don't care about e.g. bottle failures for dependencies. + install_passed = false run_as_not_developer do if !ARGV.include?("--fast") || formula_bottled test "brew", "install", "--only-dependencies", *install_args unless dependencies.empty? test "brew", "install", *install_args install_passed = steps.last.passed? - else - install_passed = false end end audit_args = [canonical_formula_name]