aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/test-bot.rb9
1 files changed, 8 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/test-bot.rb b/Library/Homebrew/cmd/test-bot.rb
index 79037f61e..245f783c8 100644
--- a/Library/Homebrew/cmd/test-bot.rb
+++ b/Library/Homebrew/cmd/test-bot.rb
@@ -1018,7 +1018,14 @@ module Homebrew
end
end
ensure
- HOMEBREW_CACHE.children.each(&:rmtree) if ARGV.include? "--clean-cache"
+ if ARGV.include? "--clean-cache"
+ HOMEBREW_CACHE.children.each(&:rmtree)
+ else
+ Dir.glob("*.bottle*.tar.gz") do |bottle_file|
+ FileUtils.rm_f HOMEBREW_CACHE/bottle_file
+ end
+ end
+
Homebrew.failed = any_errors
end
end