aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2015-05-26 15:11:17 +0100
committerMike McQuaid2015-05-27 10:00:47 +0100
commitef08db539b2685fd99367a997d47381d39339df8 (patch)
tree49ba711d42d48113b6359abc8a8827ef712e2f4e /Library
parente3ed1ccb15a1169aaad42a4c9e8f59db198f5434 (diff)
downloadbrew-ef08db539b2685fd99367a997d47381d39339df8.tar.bz2
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 <mike@mikemcquaid.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/test-bot.rb18
1 files changed, 5 insertions, 13 deletions
diff --git a/Library/Homebrew/cmd/test-bot.rb b/Library/Homebrew/cmd/test-bot.rb
index dfd1c9faa..031ae48bb 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