From fe3b69d388ca4a5b3a0d9493b688e40ee28dc1c8 Mon Sep 17 00:00:00 2001 From: Xu Cheng Date: Fri, 9 Oct 2015 20:26:39 +0800 Subject: test: sanitize ARGV options Otherwise, it will use the wrong prefix to test devel/HEAD install. --- Library/Homebrew/cmd/test.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Library/Homebrew/cmd') diff --git a/Library/Homebrew/cmd/test.rb b/Library/Homebrew/cmd/test.rb index 4dc3c4058..e6b0aa297 100644 --- a/Library/Homebrew/cmd/test.rb +++ b/Library/Homebrew/cmd/test.rb @@ -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 -- cgit v1.2.3