diff options
Diffstat (limited to 'Library/Homebrew/dev-cmd/tests.rb')
| -rw-r--r-- | Library/Homebrew/dev-cmd/tests.rb | 12 | 
1 files changed, 3 insertions, 9 deletions
| diff --git a/Library/Homebrew/dev-cmd/tests.rb b/Library/Homebrew/dev-cmd/tests.rb index 13f4d7b1e..658f2e2f3 100644 --- a/Library/Homebrew/dev-cmd/tests.rb +++ b/Library/Homebrew/dev-cmd/tests.rb @@ -12,10 +12,8 @@  #:    If `--no-compat` is passed, do not load the compatibility layer when  #:    running tests.  #: -#:    If `--online` is passed, include tests that use the GitHub API. -#: -#:    If `--official-cmd-taps` is passed, include tests that use any of the -#:    taps for official external commands. +#:    If `--online` is passed, include tests that use the GitHub API and tests +#:    that use any of the taps for official external commands.  require "fileutils"  require "tap" @@ -40,10 +38,6 @@ module Homebrew          ENV["HOMEBREW_NO_GITHUB_API"] = "1"        end -      if ARGV.include? "--official-cmd-taps" -        ENV["HOMEBREW_TEST_OFFICIAL_CMD_TAPS"] = "1" -      end -        if ARGV.include? "--coverage"          ENV["HOMEBREW_TESTS_COVERAGE"] = "1"          FileUtils.rm_f "test/coverage/.resultset.json" @@ -117,7 +111,7 @@ module Homebrew          system "bundle", "exec", "rspec", *args, "--", *files        end -      return if $?.success? +      return if $CHILD_STATUS.success?        Homebrew.failed = true      end    end | 
