Merge pull request #2816 from MikeMcQuaid/test-needs-link

test: require non-keg-only formulae to be linked.
This commit is contained in:
Mike McQuaid 2017-06-24 13:30:21 +01:00 committed by GitHub
commit 5f8a86c178

View File

@ -39,6 +39,12 @@ module Homebrew
next next
end end
# Don't test unlinked formulae
if !ARGV.force? && !f.keg_only? && !f.linked?
ofail "#{f.full_name} is not linked"
next
end
puts "Testing #{f.full_name}" puts "Testing #{f.full_name}"
env = ENV.to_hash env = ENV.to_hash