test-bot: uninstall all formula on cleanup.

Need to do this manually now that we can't rely on `git clean -xdf` to
do it for us.
This commit is contained in:
Mike McQuaid 2016-09-18 19:30:00 +01:00
parent f4a8d28819
commit 3551977fb3

View File

@ -755,6 +755,10 @@ module Homebrew
safe_system "brew", "untap", tap
end
Formula.installed.each do |formula|
safe_system "brew", "uninstall", "--force", formula
end
unless @repository == HOMEBREW_REPOSITORY
HOMEBREW_REPOSITORY.cd do
safe_system "git", "checkout", "-f", "master"