subversion_spec: fix svnadmin calls on Linux.
Ensure that we only use `xcrun` on Catalina or newer.
This commit is contained in:
parent
241786ed56
commit
69c1b4fcf9
@ -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"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user