test: enable sandbox by default.
Closes Homebrew/homebrew#45843. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
parent
307ca85e0e
commit
0c20957f5b
@ -40,7 +40,7 @@ module Homebrew
|
||||
args << "--devel"
|
||||
end
|
||||
|
||||
if Sandbox.available? && ARGV.sandbox?
|
||||
if Sandbox.available? && !ARGV.no_sandbox?
|
||||
if Sandbox.auto_disable?
|
||||
Sandbox.print_autodisable_warning
|
||||
else
|
||||
@ -49,7 +49,7 @@ module Homebrew
|
||||
end
|
||||
|
||||
Utils.safe_fork do
|
||||
if Sandbox.available? && ARGV.sandbox? && !Sandbox.auto_disable?
|
||||
if Sandbox.available? && !ARGV.no_sandbox? && !Sandbox.auto_disable?
|
||||
sandbox = Sandbox.new
|
||||
f.logs.mkpath
|
||||
sandbox.record_log(f.logs/"sandbox.test.log")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user