diff options
| author | Jack Nagel | 2014-06-23 23:23:24 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-06-23 23:24:45 -0500 |
| commit | 4afe8105705ccd26d96bd8ba494bf5e75b4a31c1 (patch) | |
| tree | 498d57047db2519b05a931b28ad514138b063d20 /Library | |
| parent | 0fa4c068b8175ba0e77b2c12c12230a0f2313d91 (diff) | |
| download | homebrew-4afe8105705ccd26d96bd8ba494bf5e75b4a31c1.tar.bz2 | |
Make the test tmpdir a constant
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/test/testing_env.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Library/Homebrew/test/testing_env.rb b/Library/Homebrew/test/testing_env.rb index 1d6f5dcdb..623973cde 100644 --- a/Library/Homebrew/test/testing_env.rb +++ b/Library/Homebrew/test/testing_env.rb @@ -14,11 +14,11 @@ require 'utils' require 'rbconfig' require 'tmpdir' -tmpdir = Dir.mktmpdir("homebrew_tests") -at_exit { FileUtils.remove_entry(tmpdir) } +TEST_TMPDIR = Dir.mktmpdir("homebrew_tests") +at_exit { FileUtils.remove_entry(TEST_TMPDIR) } # Constants normally defined in global.rb -HOMEBREW_PREFIX = Pathname.new(tmpdir).join("prefix") +HOMEBREW_PREFIX = Pathname.new(TEST_TMPDIR).join("prefix") HOMEBREW_REPOSITORY = HOMEBREW_PREFIX HOMEBREW_LIBRARY = HOMEBREW_REPOSITORY+'Library' HOMEBREW_CACHE = HOMEBREW_PREFIX.parent+'cache' |
