aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2013-06-14 19:16:56 -0500
committerJack Nagel2013-06-14 19:19:26 -0500
commit2e2d9221901e072bf9aa684ffebcb441af01d93f (patch)
tree5b819215e5c65d9f0d150e1c3dd989e8ffdfca66 /Library
parent9e771b0e34939bf892982ffe5377c813b80db10a (diff)
downloadbrew-2e2d9221901e072bf9aa684ffebcb441af01d93f.tar.bz2
Run tests under actual OS version
Diffstat (limited to 'Library')
-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