aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlyssa Ross2016-09-28 20:53:41 +0100
committerAlyssa Ross2016-10-25 22:34:34 +0100
commit13d705c5e7683ccfdb415642013daa34b6a0f1e5 (patch)
tree630c4a08a62bc473c9ad0002527ce3f9bbd8e98b
parentecb1075390a49e292c6add3495504c24e3ec1572 (diff)
downloadbrew-13d705c5e7683ccfdb415642013daa34b6a0f1e5.tar.bz2
integration tests: preserve HOMEBREW_DEVELOPER
This means that run_as_not_developer can be used in integration tests
-rw-r--r--Library/Homebrew/test/helper/integration_command_test_case.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/Library/Homebrew/test/helper/integration_command_test_case.rb b/Library/Homebrew/test/helper/integration_command_test_case.rb
index d18e4e0de..2f137e14a 100644
--- a/Library/Homebrew/test/helper/integration_command_test_case.rb
+++ b/Library/Homebrew/test/helper/integration_command_test_case.rb
@@ -73,10 +73,12 @@ class IntegrationCommandTestCase < Homebrew::TestCase
cmd_args << "-rintegration_mocks"
cmd_args << (HOMEBREW_LIBRARY_PATH/"brew.rb").resolved_path.to_s
cmd_args += args
+ developer = ENV["HOMEBREW_DEVELOPER"]
Bundler.with_original_env do
ENV["HOMEBREW_BREW_FILE"] = HOMEBREW_PREFIX/"bin/brew"
ENV["HOMEBREW_INTEGRATION_TEST"] = cmd_id_from_args(args)
ENV["HOMEBREW_TEST_TMPDIR"] = TEST_TMPDIR
+ ENV["HOMEBREW_DEVELOPER"] = developer
env.each_pair do |k, v|
ENV[k] = v
end