The unittest now emulates a fresh install better

In future, this will hopefully prevent regressions like issue Homebrew/homebrew#7.
This commit is contained in:
Max Howell 2009-08-04 00:43:16 +01:00
parent 9e98e3cf71
commit a1d5450f0c

View File

@ -9,9 +9,9 @@ require 'utils'
# these are defined in env.rb usually, but we don't want to break our actual # these are defined in env.rb usually, but we don't want to break our actual
# homebrew tree, and we do want to test everything :) # homebrew tree, and we do want to test everything :)
HOMEBREW_VERSION='0.3t' HOMEBREW_VERSION='0.3t'
HOMEBREW_CACHE=Pathname.new "/tmp/testbrew" HOMEBREW_PREFIX=Pathname.new '/tmp/testbrew/prefix'
HOMEBREW_PREFIX=Pathname.new(HOMEBREW_CACHE)+'prefix' HOMEBREW_CACHE=HOMEBREW_PREFIX.parent+"cache"
HOMEBREW_CELLAR=Pathname.new(HOMEBREW_CACHE)+'cellar' HOMEBREW_CELLAR=HOMEBREW_PREFIX.parent+"cellar"
HOMEBREW_CELLAR.mkpath HOMEBREW_CELLAR.mkpath
raise "HOMEBREW_CELLAR couldn't be created!" unless HOMEBREW_CELLAR.directory? raise "HOMEBREW_CELLAR couldn't be created!" unless HOMEBREW_CELLAR.directory?