aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Library/Homebrew/cmd/test-bot.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/test-bot.rb b/Library/Homebrew/cmd/test-bot.rb
index 926f1afcf..caa190784 100644
--- a/Library/Homebrew/cmd/test-bot.rb
+++ b/Library/Homebrew/cmd/test-bot.rb
@@ -608,6 +608,10 @@ module Homebrew
git "stash", "pop"
test "brew", "cleanup", "--prune=7"
git "gc", "--auto"
+ if ARGV.include? "--local"
+ FileUtils.rm_rf ENV["HOMEBREW_HOME"]
+ FileUtils.rm_rf ENV["HOMEBREW_LOGS"]
+ end
end
FileUtils.rm_rf @brewbot_root unless ARGV.include? "--keep-logs"
@@ -717,7 +721,7 @@ module Homebrew
end
if ARGV.include? "--local"
- ENV["HOME"] = "#{Dir.pwd}/home"
+ ENV["HOMEBREW_HOME"] = ENV["HOME"] = "#{Dir.pwd}/home"
mkdir_p ENV["HOME"]
ENV["HOMEBREW_LOGS"] = "#{Dir.pwd}/logs"
end