aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test
diff options
context:
space:
mode:
authorAdam Vandenberg2013-06-26 09:45:32 -0700
committerAdam Vandenberg2013-06-26 09:45:32 -0700
commitb2df2f7292496b51723294420daa87759ca7077b (patch)
treea8ba57bcfac1b7404c86543a494cbc6dff0d1967 /Library/Homebrew/test
parenta2c52fa480bcf5483a67c10c8d45abd279052d7b (diff)
downloadhomebrew-b2df2f7292496b51723294420daa87759ca7077b.tar.bz2
Skip test on Xcode only systems
Diffstat (limited to 'Library/Homebrew/test')
-rw-r--r--Library/Homebrew/test/test_utils.rb4
1 files changed, 4 insertions, 0 deletions
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