test-bot: don't run doctor when outside /usr/local.

This commit is contained in:
Mike McQuaid 2016-07-14 10:43:09 +01:00
parent f1f775b9aa
commit 4f02fb8ce7

View File

@ -417,7 +417,9 @@ module Homebrew
def setup
@category = __method__
return if ARGV.include? "--skip-setup"
test "brew", "doctor" if !ENV["TRAVIS"] && ENV["HOMEBREW_RUBY"] != "1.8.7"
if !ENV["TRAVIS"] && ENV["HOMEBREW_RUBY"] != "1.8.7" &&
HOMEBREW_PREFIX.to_s == "/usr/local"
test "brew", "doctor"
test "brew", "--env"
test "brew", "config"
end