From fe3b69d388ca4a5b3a0d9493b688e40ee28dc1c8 Mon Sep 17 00:00:00 2001 From: Xu Cheng Date: Fri, 9 Oct 2015 20:26:39 +0800 Subject: [PATCH] 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(+) diff --git a/Library/Homebrew/cmd/test.rb b/Library/Homebrew/cmd/test.rb index 4dc3c40585..e6b0aa2975 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