Skip to content
Snippets Groups Projects
Commit d162aab9 authored by Xu Cheng's avatar Xu Cheng Committed by Mike McQuaid
Browse files

test-bot: ensure cleanup is running


Closes Homebrew/homebrew#44982.

Signed-off-by: default avatarMike McQuaid <mike@mikemcquaid.com>
parent c247a5b4
No related branches found
No related tags found
No related merge requests found
......@@ -746,13 +746,16 @@ module Homebrew
def run
cleanup_before
download
setup
homebrew
formulae.each do |f|
formula(f)
begin
download
setup
homebrew
formulae.each do |f|
formula(f)
end
ensure
cleanup_after
end
cleanup_after
check_results
end
end
......@@ -1019,9 +1022,8 @@ module Homebrew
file.write email_subject
end
end
ensure
HOMEBREW_CACHE.children.each(&:rmtree) if ARGV.include? "--clean-cache"
Homebrew.failed = any_errors
end
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment