test-bot: set --local HOMEBREW_CACHE correctly.

It defaults to being in $HOME but we override this meaning that we would
destroy the cache every time.
This commit is contained in:
Mike McQuaid 2016-06-01 11:24:45 +01:00
parent 4da713dd9a
commit 9085e67e80

View File

@ -893,6 +893,8 @@ module Homebrew
end
if ARGV.include? "--local"
ENV["HOMEBREW_CACHE"] = "#{ENV["HOME"]}/Library/Caches/Homebrew"
mkdir_p ENV["HOMEBREW_CACHE"]
ENV["HOMEBREW_HOME"] = ENV["HOME"] = "#{Dir.pwd}/home"
mkdir_p ENV["HOME"]
ENV["HOMEBREW_LOGS"] = "#{Dir.pwd}/logs"