tests: add generic flag. (#212)

Makes it easier to quickly do tests of the generic/cross-platform
backend.
This commit is contained in:
Mike McQuaid 2016-05-08 17:12:14 +01:00
parent 61614d3529
commit bb72260606

View File

@ -6,6 +6,7 @@ module Homebrew
ENV["HOMEBREW_NO_ANALYTICS_THIS_RUN"] = "1"
ENV["TESTOPTS"] = "-v" if ARGV.verbose?
ENV["HOMEBREW_NO_COMPAT"] = "1" if ARGV.include? "--no-compat"
ENV["HOMEBREW_TEST_GENERIC_OS"] = "1" if ARGV.include? "--generic"
if ARGV.include? "--coverage"
ENV["HOMEBREW_TESTS_COVERAGE"] = "1"
FileUtils.rm_f "coverage/.resultset.json"