diff options
| author | Mike McQuaid | 2016-07-04 13:32:58 +0100 |
|---|---|---|
| committer | GitHub | 2016-07-04 13:32:58 +0100 |
| commit | 3e982b97202c3a7be5838d736a70bef495e08466 (patch) | |
| tree | ceb7094baed6e7e7192105e93bb571020795f2c4 /Library | |
| parent | 310d7067e01952cdcefe8b2c877bc4c792654de2 (diff) | |
| download | brew-3e982b97202c3a7be5838d736a70bef495e08466.tar.bz2 | |
tests: default to testing offline. (#430)
Set HOMEBREW_NO_GITHUB_API to allow running all tests (but search's
integration test specifically for now) offline. This can be overridden
with `--online`.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/cmd/tests.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/tests.rb b/Library/Homebrew/cmd/tests.rb index 71cfcde18..ae10f0f7a 100644 --- a/Library/Homebrew/cmd/tests.rb +++ b/Library/Homebrew/cmd/tests.rb @@ -1,5 +1,5 @@ #: @hide_from_man_page -#: * `tests` [`-v`] [`--coverage`] [`--generic`] [`--no-compat`] [`--only=`<test_script/test_method>] [`--seed` <seed>] [`--trace`]: +#: * `tests` [`-v`] [`--coverage`] [`--generic`] [`--no-compat`] [`--only=`<test_script/test_method>] [`--seed` <seed>] [`--trace`] [`--online`]: #: Run Homebrew's unit and integration tests. require "fileutils" @@ -11,6 +11,7 @@ module Homebrew 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" + ENV["HOMEBREW_NO_GITHUB_API"] = "1" unless ARGV.include? "--online" if ARGV.include? "--coverage" ENV["HOMEBREW_TESTS_COVERAGE"] = "1" FileUtils.rm_f "coverage/.resultset.json" |
