Missed one

This commit is contained in:
Douglas Eichelberger 2024-04-01 12:09:20 -07:00
parent fdc95d02c8
commit 6d716a7d69

View File

@ -98,7 +98,7 @@ module Homebrew
end end
end end
rescue Exception => e # rubocop:disable Lint/RescueException rescue Exception => e # rubocop:disable Lint/RescueException
retry if retry_test?(f, args:) retry if retry_test?(f)
ofail "#{f.full_name}: failed" ofail "#{f.full_name}: failed"
$stderr.puts e, Utils::Backtrace.clean(e) $stderr.puts e, Utils::Backtrace.clean(e)
ensure ensure
@ -109,7 +109,7 @@ module Homebrew
private private
def retry_test?(formula, args:) def retry_test?(formula)
@test_failed ||= Set.new @test_failed ||= Set.new
if args.retry? && @test_failed.add?(formula) if args.retry? && @test_failed.add?(formula)
oh1 "Testing #{formula.full_name} (again)" oh1 "Testing #{formula.full_name} (again)"