Skip to content

Commit

Permalink
formula_dependents: ensure dependencies are linked
Browse files Browse the repository at this point in the history
  • Loading branch information
bayandin committed Sep 2, 2021
1 parent 472a09e commit 6e59cf0
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions lib/tests/formulae_dependents.rb
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,16 @@ def install_dependent(dependent, testable_dependents, args:, build_from_source:
test "brew", "linkage", "--test", dependent.full_name

if testable_dependents.include? dependent
test "brew", "install", "--only-dependencies", "--include-test",
dependent.full_name
test "brew", "install", "--only-dependencies", "--include-test", dependent.full_name

dependent.recursive_dependencies.each do |dependency|
next if dependency.build?
next if dependency.to_formula.keg_only?
next if dependency.to_formula.linked_keg.exist?

test "brew", "link", dependency.name
end

test "brew", "test", "--retry", "--verbose", dependent.full_name
end

Expand Down

0 comments on commit 6e59cf0

Please sign in to comment.