Make the test tmpdir a constant
This commit is contained in:
parent
b98f7277a4
commit
5ab65d0b25
@ -14,11 +14,11 @@ require 'utils'
|
|||||||
require 'rbconfig'
|
require 'rbconfig'
|
||||||
require 'tmpdir'
|
require 'tmpdir'
|
||||||
|
|
||||||
tmpdir = Dir.mktmpdir("homebrew_tests")
|
TEST_TMPDIR = Dir.mktmpdir("homebrew_tests")
|
||||||
at_exit { FileUtils.remove_entry(tmpdir) }
|
at_exit { FileUtils.remove_entry(TEST_TMPDIR) }
|
||||||
|
|
||||||
# Constants normally defined in global.rb
|
# 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_REPOSITORY = HOMEBREW_PREFIX
|
||||||
HOMEBREW_LIBRARY = HOMEBREW_REPOSITORY+'Library'
|
HOMEBREW_LIBRARY = HOMEBREW_REPOSITORY+'Library'
|
||||||
HOMEBREW_CACHE = HOMEBREW_PREFIX.parent+'cache'
|
HOMEBREW_CACHE = HOMEBREW_PREFIX.parent+'cache'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user