diff options
| author | Mike McQuaid | 2015-08-13 10:55:29 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2015-08-13 10:55:29 +0100 |
| commit | 83ab0acfc0fae4968309d2ce248ec7478436c476 (patch) | |
| tree | 82edf118d52cb620a9899e0560a6442706958a00 /Library/Homebrew/cmd | |
| parent | 15c3fb32b26228b4cef2bb33863e8072ab270a41 (diff) | |
| download | brew-83ab0acfc0fae4968309d2ce248ec7478436c476.tar.bz2 | |
test-bot: remove custom $HOME on --cleanup.
Diffstat (limited to 'Library/Homebrew/cmd')
| -rw-r--r-- | Library/Homebrew/cmd/test-bot.rb | 6 |
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 |
