test: sanitize ARGV options

Otherwise, it will use the wrong prefix to test devel/HEAD install.
This commit is contained in:
Xu Cheng 2015-10-09 20:26:39 +08:00
parent 60ba8beefa
commit fe3b69d388

View File

@ -34,6 +34,12 @@ module Homebrew
#{f.path}
].concat(ARGV.options_only)
if f.head?
args << "--HEAD"
elsif f.devel?
args << "--devel"
end
if Sandbox.available? && ARGV.sandbox?
if Sandbox.auto_disable?
Sandbox.print_autodisable_warning