From ef08db539b2685fd99367a997d47381d39339df8 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Tue, 26 May 2015 15:11:17 +0100 Subject: [PATCH] test-bot: always brew install as a non-developer. Bored of dealing with the bottle conflicts errors here so I don't think it's really worth working around. Closes Homebrew/homebrew#40097. Signed-off-by: Mike McQuaid --- Library/Homebrew/cmd/test-bot.rb | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/Library/Homebrew/cmd/test-bot.rb b/Library/Homebrew/cmd/test-bot.rb index dfd1c9faa5..031ae48bb8 100644 --- a/Library/Homebrew/cmd/test-bot.rb +++ b/Library/Homebrew/cmd/test-bot.rb @@ -418,11 +418,7 @@ module Homebrew CompilerSelector.select_for(formula) rescue CompilerSelectionError => e unless installed_gcc - if @formulae.include? "gcc" - run_as_not_developer { test "brew", "install", "gcc" } - else - test "brew", "install", "gcc" - end + run_as_not_developer { test "brew", "install", "gcc" } installed_gcc = true OS::Mac.clear_version_cache retry @@ -452,11 +448,7 @@ module Homebrew testable_dependents = dependents.select { |d| d.test_defined? && d.bottled? } if (deps | reqs).any? { |d| d.name == "mercurial" && d.build? } - if @formulae.include? "mercurial" - run_as_not_developer { test "brew", "install", "mercurial" } - else - test "brew", "install", "mercurial" - end + run_as_not_developer { test "brew", "install", "mercurial" } end test "brew", "fetch", "--retry", *unchanged_dependencies unless unchanged_dependencies.empty? @@ -485,8 +477,8 @@ module Homebrew # Don't care about e.g. bottle failures for dependencies. run_as_not_developer do test "brew", "install", "--only-dependencies", *install_args unless dependencies.empty? + test "brew", "install", *install_args end - test "brew", "install", *install_args install_passed = steps.last.passed? audit_args = [canonical_formula_name] audit_args << "--strict" if @added_formulae.include? formula_name @@ -520,7 +512,7 @@ module Homebrew conflicts.each do |conflict| test "brew", "unlink", conflict.name end - test "brew", "install", dependent.name + run_as_not_developer { test "brew", "install", dependent.name } next if steps.last.failed? end if dependent.installed? @@ -533,7 +525,7 @@ module Homebrew if formula.devel && formula.stable? && !ARGV.include?('--HEAD') \ && satisfied_requirements?(formula, :devel) test "brew", "fetch", "--retry", "--devel", *formula_fetch_options - test "brew", "install", "--devel", "--verbose", canonical_formula_name + run_as_not_developer { test "brew", "install", "--devel", "--verbose", dependent.name } devel_install_passed = steps.last.passed? test "brew", "audit", "--devel", *audit_args if devel_install_passed