test-bot: remove custom $HOME on --cleanup.
This commit is contained in:
parent
15c3fb32b2
commit
83ab0acfc0
@ -608,6 +608,10 @@ module Homebrew
|
|||||||
git "stash", "pop"
|
git "stash", "pop"
|
||||||
test "brew", "cleanup", "--prune=7"
|
test "brew", "cleanup", "--prune=7"
|
||||||
git "gc", "--auto"
|
git "gc", "--auto"
|
||||||
|
if ARGV.include? "--local"
|
||||||
|
FileUtils.rm_rf ENV["HOMEBREW_HOME"]
|
||||||
|
FileUtils.rm_rf ENV["HOMEBREW_LOGS"]
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
FileUtils.rm_rf @brewbot_root unless ARGV.include? "--keep-logs"
|
FileUtils.rm_rf @brewbot_root unless ARGV.include? "--keep-logs"
|
||||||
@ -717,7 +721,7 @@ module Homebrew
|
|||||||
end
|
end
|
||||||
|
|
||||||
if ARGV.include? "--local"
|
if ARGV.include? "--local"
|
||||||
ENV["HOME"] = "#{Dir.pwd}/home"
|
ENV["HOMEBREW_HOME"] = ENV["HOME"] = "#{Dir.pwd}/home"
|
||||||
mkdir_p ENV["HOME"]
|
mkdir_p ENV["HOME"]
|
||||||
ENV["HOMEBREW_LOGS"] = "#{Dir.pwd}/logs"
|
ENV["HOMEBREW_LOGS"] = "#{Dir.pwd}/logs"
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user