aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorJack Nagel2013-06-14 19:16:56 -0500
committerJack Nagel2013-06-14 19:19:26 -0500
commit55a122ea0cba6df60e333842e47573c436dd2e2e (patch)
tree76e8ec3b8df3352ba946832f8449ce2810588604 /Library/Homebrew
parent73ad554060c33d22996a419ca12156d17c8f80d4 (diff)
downloadhomebrew-55a122ea0cba6df60e333842e47573c436dd2e2e.tar.bz2
Run tests under actual OS version
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/test/testing_env.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/test/testing_env.rb b/Library/Homebrew/test/testing_env.rb
index 57f8971fa..0a3c8a572 100644
--- a/Library/Homebrew/test/testing_env.rb
+++ b/Library/Homebrew/test/testing_env.rb
@@ -34,8 +34,8 @@ RUBY_BIN = Pathname.new("#{RbConfig::CONFIG['bindir']}")
RUBY_PATH = RUBY_BIN + RbConfig::CONFIG['ruby_install_name'] + RbConfig::CONFIG['EXEEXT']
MACOS = true
-MACOS_VERSION = ENV.fetch('MACOS_VERSION', 10.6)
-MACOS_FULL_VERSION = '10.6.8'
+MACOS_FULL_VERSION = `/usr/bin/sw_vers -productVersion`.chomp
+MACOS_VERSION = ENV.fetch('MACOS_VERSION') { MACOS_FULL_VERSION[/10\.\d+/] }.to_f
ORIGINAL_PATHS = ENV['PATH'].split(':').map{ |p| Pathname.new(p).expand_path rescue nil }.compact.freeze