From 00e227ac46ff9ff0f329e771e2f0de2932cfa6bc Mon Sep 17 00:00:00 2001 From: Max Howell Date: Thu, 12 Nov 2009 01:33:14 +0000 Subject: More tweaking of main exception handler output --- Library/Homebrew/test/unittest.rb | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) (limited to 'Library/Homebrew/test') diff --git a/Library/Homebrew/test/unittest.rb b/Library/Homebrew/test/unittest.rb index d611ce234..f2c5d73b2 100755 --- a/Library/Homebrew/test/unittest.rb +++ b/Library/Homebrew/test/unittest.rb @@ -7,15 +7,6 @@ ABS__FILE__=File.expand_path(__FILE__) $:.push(File.expand_path(__FILE__+'/../..')) require 'extend/pathname' -require 'utils' -require 'hardware' -require 'formula' -require 'download_strategy' -require 'keg' -require 'utils' -require 'brew.h' -require 'hardware' -require 'update' # these are defined in global.rb, but we don't want to break our actual # homebrew tree, and we do want to test everything :) @@ -24,12 +15,23 @@ HOMEBREW_REPOSITORY=HOMEBREW_PREFIX HOMEBREW_CACHE=HOMEBREW_PREFIX.parent+"cache" HOMEBREW_CELLAR=HOMEBREW_PREFIX.parent+"cellar" HOMEBREW_USER_AGENT="Homebrew" +HOMEBREW_WWW='http://example.com' MACOS_VERSION=10.6 (HOMEBREW_PREFIX+'Library'+'Formula').mkpath Dir.chdir HOMEBREW_PREFIX at_exit { HOMEBREW_PREFIX.parent.rmtree } +require 'utils' +require 'hardware' +require 'formula' +require 'download_strategy' +require 'keg' +require 'utils' +require 'brew.h' +require 'hardware' +require 'update' + # for some reason our utils.rb safe_system behaves completely differently # during these tests. This is worrying for sure. def safe_system *args -- cgit v1.2.3