Ruby 2.6.3 brew tests fixes
This commit is contained in:
parent
cf34e1bec8
commit
8a8fc68264
@ -96,7 +96,7 @@ class SystemCommand
|
|||||||
|
|
||||||
return [] if set_variables.empty?
|
return [] if set_variables.empty?
|
||||||
|
|
||||||
["env", *set_variables]
|
["/usr/bin/env", *set_variables]
|
||||||
end
|
end
|
||||||
|
|
||||||
def sudo_prefix
|
def sudo_prefix
|
||||||
|
|||||||
@ -0,0 +1 @@
|
|||||||
|
testball_bottle-0.1.yosemite.bottle.tar.gz
|
||||||
@ -47,8 +47,7 @@ RSpec.shared_context "integration test" do
|
|||||||
|
|
||||||
example.run
|
example.run
|
||||||
ensure
|
ensure
|
||||||
FileUtils.rm HOMEBREW_PREFIX/"bin/brew"
|
FileUtils.rm_r HOMEBREW_PREFIX/"bin"
|
||||||
FileUtils.rmdir HOMEBREW_PREFIX/"bin"
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@ -23,7 +23,7 @@ describe SystemCommand do
|
|||||||
it "includes the given variables explicitly" do
|
it "includes the given variables explicitly" do
|
||||||
expect(Open3)
|
expect(Open3)
|
||||||
.to receive(:popen3)
|
.to receive(:popen3)
|
||||||
.with(an_instance_of(Hash), ["env", "env"], "A=1", "B=2", "C=3", "env", *env_args, {})
|
.with(an_instance_of(Hash), ["/usr/bin/env", "/usr/bin/env"], "A=1", "B=2", "C=3", "env", *env_args, {})
|
||||||
.and_call_original
|
.and_call_original
|
||||||
|
|
||||||
command.run!
|
command.run!
|
||||||
@ -49,7 +49,7 @@ describe SystemCommand do
|
|||||||
expect(Open3)
|
expect(Open3)
|
||||||
.to receive(:popen3)
|
.to receive(:popen3)
|
||||||
.with(an_instance_of(Hash), ["/usr/bin/sudo", "/usr/bin/sudo"], "-E", "--",
|
.with(an_instance_of(Hash), ["/usr/bin/sudo", "/usr/bin/sudo"], "-E", "--",
|
||||||
"env", "A=1", "B=2", "C=3", "env", *env_args, {})
|
"/usr/bin/env", "A=1", "B=2", "C=3", "env", *env_args, {})
|
||||||
.and_wrap_original do |original_popen3, *_, &block|
|
.and_wrap_original do |original_popen3, *_, &block|
|
||||||
original_popen3.call("true", &block)
|
original_popen3.call("true", &block)
|
||||||
end
|
end
|
||||||
|
|||||||
@ -8,9 +8,8 @@ describe UnpackStrategy::Subversion, :needs_svn do
|
|||||||
let(:path) { working_copy }
|
let(:path) { working_copy }
|
||||||
|
|
||||||
before do
|
before do
|
||||||
system "svnadmin", "create", repo
|
safe_system "xcrun", "svnadmin", "create", repo
|
||||||
|
safe_system "svn", "checkout", "file://#{repo}", working_copy
|
||||||
system "svn", "checkout", "file://#{repo}", working_copy
|
|
||||||
|
|
||||||
FileUtils.touch working_copy/"test"
|
FileUtils.touch working_copy/"test"
|
||||||
system "svn", "add", working_copy/"test"
|
system "svn", "add", working_copy/"test"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user