subversion_spec: fix svnadmin calls on Linux.

Ensure that we only use `xcrun` on Catalina or newer.
This commit is contained in:
Mike McQuaid 2019-10-10 10:45:22 +01:00
parent 241786ed56
commit 69c1b4fcf9
No known key found for this signature in database
GPG Key ID: 48A898132FD8EE70

View File

@ -8,7 +8,9 @@ describe UnpackStrategy::Subversion, :needs_svn do
let(:path) { working_copy } let(:path) { working_copy }
before do before do
safe_system "xcrun", "svnadmin", "create", repo svnadmin = ["svnadmin"]
svnadmin = ["xcrun", *svnadmin] if OS.mac? && MacOS.version >= :catalina
safe_system(*svnadmin, "create", repo)
safe_system "svn", "checkout", "file://#{repo}", working_copy safe_system "svn", "checkout", "file://#{repo}", working_copy
FileUtils.touch working_copy/"test" FileUtils.touch working_copy/"test"