test-bot: don't untap during cleanup_before

This commit is contained in:
Dominyk Tiller 2016-04-18 17:54:05 +01:00
parent 75f1e49027
commit c3c233dd80

View File

@ -662,7 +662,6 @@ module Homebrew
safe_system "git", "checkout", "-f", "master" safe_system "git", "checkout", "-f", "master"
# This will uninstall all formulae, as long as # This will uninstall all formulae, as long as
# HOMEBREW_REPOSITORY == HOMEBREW_PREFIX, which is true on the test bots # HOMEBREW_REPOSITORY == HOMEBREW_PREFIX, which is true on the test bots
Tap.names.each { |s| safe_system "brew", "untap", s if s != "homebrew/core" }
safe_system "git", "clean", "-ffdx", "--exclude=/Library/Taps/" unless ENV["HOMEBREW_RUBY"] == "1.8.7" safe_system "git", "clean", "-ffdx", "--exclude=/Library/Taps/" unless ENV["HOMEBREW_RUBY"] == "1.8.7"
end end
pr_locks = "#{@repository}/.git/refs/remotes/*/pr/*/*.lock" pr_locks = "#{@repository}/.git/refs/remotes/*/pr/*/*.lock"