Skip to content

Commit 8d0c8ae

Browse files
authored
Merge pull request #21672 from Homebrew/test-bot-avoid-deferring
test_bot: avoid deferring when only running dependent tests
2 parents 32f381c + 1acbb0b commit 8d0c8ae

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

Library/Homebrew/test_bot/formulae_dependents.rb

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -207,9 +207,11 @@ def dependents_for_formula(formula, formula_name, args:)
207207

208208
# Defer formulae which could be tested later
209209
# i.e. formulae that also depend on something else yet to be built in this test run.
210-
dependents.reject! do |_, deps|
211-
still_to_test = @dependent_testing_formulae - @testing_formulae_with_tested_dependents
212-
deps.map { |d| d.to_formula.full_name }.intersect?(still_to_test)
210+
unless args.only_formulae_dependents?
211+
dependents.reject! do |_, deps|
212+
still_to_test = @dependent_testing_formulae - @testing_formulae_with_tested_dependents
213+
deps.map { |d| d.to_formula.full_name }.intersect?(still_to_test)
214+
end
213215
end
214216

215217
# Split into dependents that we could potentially be building from source and those

0 commit comments

Comments
 (0)