Missed one
This commit is contained in:
parent
fdc95d02c8
commit
6d716a7d69
@ -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)"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user