aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test/testing_env.rb
diff options
context:
space:
mode:
authorJack Nagel2014-06-23 21:19:26 -0500
committerJack Nagel2014-06-23 22:11:39 -0500
commitf9fd3f46d4c76061814a2e55e1a1c5def6256da4 (patch)
treeb88eca57f5e561c763bac28f27b30f1ae50ae228 /Library/Homebrew/test/testing_env.rb
parent04f504546ce7993e81134ae8a35a6cd625b29f47 (diff)
downloadbrew-f9fd3f46d4c76061814a2e55e1a1c5def6256da4.tar.bz2
Explicitly create top-level directories for tests
Diffstat (limited to 'Library/Homebrew/test/testing_env.rb')
-rw-r--r--Library/Homebrew/test/testing_env.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/Library/Homebrew/test/testing_env.rb b/Library/Homebrew/test/testing_env.rb
index 605cdfc5c..1d6f5dcdb 100644
--- a/Library/Homebrew/test/testing_env.rb
+++ b/Library/Homebrew/test/testing_env.rb
@@ -48,9 +48,8 @@ MACOS_VERSION = ENV.fetch('MACOS_VERSION') { MACOS_FULL_VERSION[/10\.\d+/] }
ORIGINAL_PATHS = ENV['PATH'].split(File::PATH_SEPARATOR).map{ |p| Pathname.new(p).expand_path rescue nil }.compact.freeze
# Test environment setup
-%w{Library/Formula Library/ENV}.each do |d|
- HOMEBREW_REPOSITORY.join(d).mkpath
-end
+%w{ENV Formula}.each { |d| HOMEBREW_LIBRARY.join(d).mkpath }
+%w{cache formula_cache cellar logs}.each { |d| HOMEBREW_PREFIX.parent.join(d).mkpath }
# Test fixtures and files can be found relative to this path
TEST_DIRECTORY = File.dirname(File.expand_path(__FILE__))