From 13d705c5e7683ccfdb415642013daa34b6a0f1e5 Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Wed, 28 Sep 2016 20:53:41 +0100 Subject: [PATCH] integration tests: preserve HOMEBREW_DEVELOPER This means that run_as_not_developer can be used in integration tests --- Library/Homebrew/test/helper/integration_command_test_case.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Library/Homebrew/test/helper/integration_command_test_case.rb b/Library/Homebrew/test/helper/integration_command_test_case.rb index d18e4e0de7..2f137e14a3 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