Pass args correctly in brew test.
This commit is contained in:
parent
617b369543
commit
cd402358b0
@ -109,7 +109,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)
|
retry if retry_test?(f, args: args)
|
||||||
ofail "#{f.full_name}: failed"
|
ofail "#{f.full_name}: failed"
|
||||||
puts e, e.backtrace
|
puts e, e.backtrace
|
||||||
ensure
|
ensure
|
||||||
@ -118,7 +118,7 @@ module Homebrew
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def retry_test?(f)
|
def retry_test?(f, args:)
|
||||||
@test_failed ||= Set.new
|
@test_failed ||= Set.new
|
||||||
if args.retry? && @test_failed.add?(f)
|
if args.retry? && @test_failed.add?(f)
|
||||||
oh1 "Testing #{f.full_name} (again)"
|
oh1 "Testing #{f.full_name} (again)"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user