aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/dev-cmd/tests.rb
diff options
context:
space:
mode:
authorMike McQuaid2017-04-22 12:26:18 +0100
committerMike McQuaid2017-04-22 12:49:14 +0100
commita6df701fad516a1da54ea245fb47826d47dc03b5 (patch)
treea60cec8272fa08f6409c0e46a483322e604f13c9 /Library/Homebrew/dev-cmd/tests.rb
parent268f2dbde2f157bab14518a2d725a111a44e00a3 (diff)
downloadbrew-a6df701fad516a1da54ea245fb47826d47dc03b5.tar.bz2
tests: reduce some noise.
- Tweak the way offline skipping happens - Skip more tests that break when offline - Hide more stdout output from tests.
Diffstat (limited to 'Library/Homebrew/dev-cmd/tests.rb')
-rw-r--r--Library/Homebrew/dev-cmd/tests.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/Library/Homebrew/dev-cmd/tests.rb b/Library/Homebrew/dev-cmd/tests.rb
index 6862c9a79..72d6143fc 100644
--- a/Library/Homebrew/dev-cmd/tests.rb
+++ b/Library/Homebrew/dev-cmd/tests.rb
@@ -33,7 +33,12 @@ module Homebrew
ENV["HOMEBREW_DEVELOPER"] = "1"
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? "--online"
+ ENV["HOMEBREW_TEST_ONLINE"] = "1"
+ else
+ ENV["HOMEBREW_NO_GITHUB_API"] = "1"
+ end
if ARGV.include? "--official-cmd-taps"
ENV["HOMEBREW_TEST_OFFICIAL_CMD_TAPS"] = "1"