diff --git a/lib/tests/formulae_dependents.rb b/lib/tests/formulae_dependents.rb index 3434ba45..32d53294 100644 --- a/lib/tests/formulae_dependents.rb +++ b/lib/tests/formulae_dependents.rb @@ -7,6 +7,10 @@ class FormulaeDependents < TestFormulae attr_writer :testing_formulae, :tested_formulae def run!(args:) + unneeded_formulae = @tested_formulae - @testing_formulae + skipped_or_failed_formulae ||= [] + skipped_or_failed_formulae += unneeded_formulae + info_header "Skipped or failed formulae:" puts skipped_or_failed_formulae @@ -14,8 +18,6 @@ def run!(args:) @tested_dependents_list = Pathname("tested-dependents-#{Utils::Bottles.tag}.txt") @dependent_testing_formulae = sorted_formulae - skipped_or_failed_formulae - unneeded_formulae = @tested_formulae - @testing_formulae - @dependent_testing_formulae -= unneeded_formulae install_formulae_if_needed_from_bottles!(args:) @@ -40,7 +42,7 @@ def run!(args:) private def install_formulae_if_needed_from_bottles!(args:) - (@tested_formulae - skipped_or_failed_formulae).each do |formula_name| + @dependent_testing_formulae.each do |formula_name| formula = Formulary.factory(formula_name) next if formula.latest_version_installed?