test-bot: ensure cleanup is running
Closes Homebrew/homebrew#44982. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
parent
c247a5b462
commit
d162aab9c6
@ -746,13 +746,16 @@ module Homebrew
|
|||||||
|
|
||||||
def run
|
def run
|
||||||
cleanup_before
|
cleanup_before
|
||||||
download
|
begin
|
||||||
setup
|
download
|
||||||
homebrew
|
setup
|
||||||
formulae.each do |f|
|
homebrew
|
||||||
formula(f)
|
formulae.each do |f|
|
||||||
|
formula(f)
|
||||||
|
end
|
||||||
|
ensure
|
||||||
|
cleanup_after
|
||||||
end
|
end
|
||||||
cleanup_after
|
|
||||||
check_results
|
check_results
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@ -1019,9 +1022,8 @@ module Homebrew
|
|||||||
file.write email_subject
|
file.write email_subject
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
ensure
|
||||||
HOMEBREW_CACHE.children.each(&:rmtree) if ARGV.include? "--clean-cache"
|
HOMEBREW_CACHE.children.each(&:rmtree) if ARGV.include? "--clean-cache"
|
||||||
|
|
||||||
Homebrew.failed = any_errors
|
Homebrew.failed = any_errors
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user