brew-test-bot: Only run brew-test if test defined.

This commit is contained in:
Mike McQuaid 2012-09-02 17:19:14 -07:00
parent 88b1da7405
commit 50fa018057

View File

@ -198,7 +198,7 @@ class Test
test "brew audit #{formula}"
test "brew install --verbose --build-bottle #{formula}"
return unless steps.last.status == :passed
test "brew test #{formula}"
test "brew test #{formula}" if defined? Formula.factory(formula).test
test "brew bottle #{formula}"
test "brew uninstall #{formula}"
end