test-bot: only run necessary test for tap

This commit is contained in:
Xu Cheng 2015-09-11 23:05:17 +08:00
parent ce390b9bd9
commit 849f378d6a

View File

@ -573,11 +573,15 @@ module Homebrew
def homebrew
@category = __method__
return if @skip_homebrew
test "brew", "tests"
test "brew", "tests", "--no-compat" if @tap
readall_args = ["--aliases"]
readall_args << "--syntax" if MacOS.version >= :mavericks
test "brew", "readall", *readall_args
if @tap
test "brew", "readall", @tap
else
test "brew", "tests"
test "brew", "tests", "--no-compat"
readall_args = ["--aliases"]
readall_args << "--syntax" if MacOS.version >= :mavericks
test "brew", "readall", *readall_args
end
end
def cleanup_before