test: sanitize ARGV options
Otherwise, it will use the wrong prefix to test devel/HEAD install.
This commit is contained in:
parent
60ba8beefa
commit
fe3b69d388
@ -34,6 +34,12 @@ module Homebrew
|
|||||||
#{f.path}
|
#{f.path}
|
||||||
].concat(ARGV.options_only)
|
].concat(ARGV.options_only)
|
||||||
|
|
||||||
|
if f.head?
|
||||||
|
args << "--HEAD"
|
||||||
|
elsif f.devel?
|
||||||
|
args << "--devel"
|
||||||
|
end
|
||||||
|
|
||||||
if Sandbox.available? && ARGV.sandbox?
|
if Sandbox.available? && ARGV.sandbox?
|
||||||
if Sandbox.auto_disable?
|
if Sandbox.auto_disable?
|
||||||
Sandbox.print_autodisable_warning
|
Sandbox.print_autodisable_warning
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user