From 05efd70dc350bf60c47d25d1d48da188ffb504df Mon Sep 17 00:00:00 2001 From: Andrew Janke Date: Tue, 26 Apr 2016 04:28:38 -0400 Subject: Analytics: Separate user-supplied and internal-use DISABLE_ANALYTICS (#155) This prevents `brew` self-calls from interacting with the stickiness of HOMEBREW_NO_ANALYTICS being persisted to the brew repo and accidentally disabling analytics permanently when it should have been for just one run, while restoring the stickiness of an explicit user-supplied HOMEBREW_NO_ANALYTICS.--- Library/Homebrew/cmd/tests.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Library/Homebrew/cmd/tests.rb') diff --git a/Library/Homebrew/cmd/tests.rb b/Library/Homebrew/cmd/tests.rb index 5ec841773..c1d01ca11 100644 --- a/Library/Homebrew/cmd/tests.rb +++ b/Library/Homebrew/cmd/tests.rb @@ -3,7 +3,7 @@ require "fileutils" module Homebrew def tests (HOMEBREW_LIBRARY/"Homebrew/test").cd do - ENV["HOMEBREW_NO_ANALYTICS"] = "1" + ENV["HOMEBREW_NO_ANALYTICS_THIS_RUN"] = "1" ENV["TESTOPTS"] = "-v" if ARGV.verbose? ENV["HOMEBREW_NO_COMPAT"] = "1" if ARGV.include? "--no-compat" if ARGV.include? "--coverage" -- cgit v1.2.3