test-bot: don't run readall on <=10.8.

The Ruby 1.8 implementation seems to be really flaky, unfortunately.
This commit is contained in:
Mike McQuaid 2015-03-20 16:59:21 +00:00
parent dcf6be10f8
commit 2d1c8b4de4
2 changed files with 4 additions and 2 deletions

View File

@ -22,7 +22,7 @@ module Homebrew
while rb = ruby_files.pop(true) while rb = ruby_files.pop(true)
nostdout { failed = true unless system "ruby", "-c", "-w", rb } nostdout { failed = true unless system "ruby", "-c", "-w", rb }
end end
rescue ThreadError, IOError # ignore empty queue error rescue ThreadError # ignore empty queue error
end end
end end
end end

View File

@ -505,7 +505,9 @@ module Homebrew
def homebrew def homebrew
@category = __method__ @category = __method__
test "brew", "tests" test "brew", "tests"
test "brew", "readall", "--syntax" readall_args = []
readall_args << "--syntax" if MacOS.version >= :mavericks
test "brew", "readall", *readall_args
end end
def cleanup_before def cleanup_before