From f4f54b79b7fcbec974a26ae5c0fb5808d43f95d7 Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Wed, 26 Jun 2013 09:45:32 -0700 Subject: Skip test on Xcode only systems --- Library/Homebrew/test/test_utils.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Library') diff --git a/Library/Homebrew/test/test_utils.rb b/Library/Homebrew/test/test_utils.rb index f099bbc9f..c21b9fb72 100644 --- a/Library/Homebrew/test/test_utils.rb +++ b/Library/Homebrew/test/test_utils.rb @@ -10,6 +10,10 @@ class UtilTests < Test::Unit::TestCase end def test_arch_for_command + # /usr/bin/svn only exists if the command-line tools are installed + # Skip test on Xcode only systems + return unless File.exist? '/usr/bin/svn' + archs = archs_for_command '/usr/bin/svn' if `sw_vers -productVersion` =~ /10\.(\d+)/ and $1.to_i >= 7 assert_equal 2, archs.length -- cgit v1.2.3