brew-test-bot: set HOME.
Stop dumping files in the real HOME and allow Jenkins to handle workspace cleanup instead.
This commit is contained in:
parent
b6c2c8cdc8
commit
b91b23f8d0
@ -11,7 +11,7 @@
|
|||||||
# --email: Generate an email subject file.
|
# --email: Generate an email subject file.
|
||||||
# --no-bottle: Run brew install without --build-bottle
|
# --no-bottle: Run brew install without --build-bottle
|
||||||
# --HEAD: Run brew install with --HEAD
|
# --HEAD: Run brew install with --HEAD
|
||||||
# --local: Ask Homebrew to write verbose logs under ./logs/
|
# --local: Ask Homebrew to write verbose logs under ./logs/ and set HOME to ./home/
|
||||||
# --tap=<tap>: Use the git repository of the given tap
|
# --tap=<tap>: Use the git repository of the given tap
|
||||||
# --dry-run: Just print commands, don't run them.
|
# --dry-run: Just print commands, don't run them.
|
||||||
#
|
#
|
||||||
@ -535,6 +535,8 @@ module Homebrew
|
|||||||
end
|
end
|
||||||
|
|
||||||
if ARGV.include? '--local'
|
if ARGV.include? '--local'
|
||||||
|
ENV['HOME'] = "#{Dir.pwd}/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