Merge pull request #7603 from MikeMcQuaid/include_test_fixes

formula_installer: fix test dependencies.
This commit is contained in:
Mike McQuaid 2020-05-19 10:43:27 +01:00 committed by GitHub
commit 731c723c4a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -488,9 +488,9 @@ class FormulaInstaller
if dep.prune_from_option?(build)
Dependency.prune
elsif include_test? && dep.test? && !dep.installed?
Dependency.keep_but_prune_recursive_deps
elsif dep.build? && install_bottle_for?(dependent, build)
elsif dep.test? && !dep.build? && !include_test?
Dependency.prune
elsif dep.build? && !dep.test? && install_bottle_for?(dependent, build)
Dependency.prune
elsif dep.prune_if_build_and_not_dependent?(dependent)
Dependency.prune