diff options
| author | Xu Cheng | 2015-10-09 20:26:39 +0800 |
|---|---|---|
| committer | Xu Cheng | 2015-10-10 01:34:42 +0800 |
| commit | fe3b69d388ca4a5b3a0d9493b688e40ee28dc1c8 (patch) | |
| tree | 38ff8a4c54bfa69eaa690eb28a88b9ec27541f2c /Library | |
| parent | 60ba8beefadedee7db03cb35b1fd24f2be6eeed5 (diff) | |
| download | brew-fe3b69d388ca4a5b3a0d9493b688e40ee28dc1c8.tar.bz2 | |
test: sanitize ARGV options
Otherwise, it will use the wrong prefix to test devel/HEAD install.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/cmd/test.rb | 6 |
1 files changed, 6 insertions, 0 deletions
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 |
