aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
authorMike McQuaid2015-08-13 10:55:29 +0100
committerMike McQuaid2015-08-13 10:55:29 +0100
commit83ab0acfc0fae4968309d2ce248ec7478436c476 (patch)
tree82edf118d52cb620a9899e0560a6442706958a00 /Library/Homebrew/cmd
parent15c3fb32b26228b4cef2bb33863e8072ab270a41 (diff)
downloadbrew-83ab0acfc0fae4968309d2ce248ec7478436c476.tar.bz2
test-bot: remove custom $HOME on --cleanup.
Diffstat (limited to 'Library/Homebrew/cmd')
-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