[rubygems/rubygems] Original env is already set by common test setup
https://github.com/rubygems/rubygems/commit/59449557dd
This commit is contained in:
parent
fbb4b8d235
commit
cd2410f9d8
Notes:
git
2022-04-28 19:09:13 +09:00
@ -4,15 +4,13 @@ require 'rubygems/ext'
|
|||||||
|
|
||||||
class TestGemExtCargoBuilder < Gem::TestCase
|
class TestGemExtCargoBuilder < Gem::TestCase
|
||||||
def setup
|
def setup
|
||||||
@orig_env = ENV.to_hash
|
super
|
||||||
|
|
||||||
@rust_envs = {
|
@rust_envs = {
|
||||||
'CARGO_HOME' => File.join(@orig_env['HOME'], '.cargo'),
|
'CARGO_HOME' => File.join(@orig_env['HOME'], '.cargo'),
|
||||||
'RUSTUP_HOME' => File.join(@orig_env['HOME'], '.rustup'),
|
'RUSTUP_HOME' => File.join(@orig_env['HOME'], '.rustup'),
|
||||||
}
|
}
|
||||||
|
|
||||||
super
|
|
||||||
|
|
||||||
system(@rust_envs, 'cargo', '-V', out: IO::NULL, err: [:child, :out])
|
system(@rust_envs, 'cargo', '-V', out: IO::NULL, err: [:child, :out])
|
||||||
pend 'cargo not present' unless $?.success?
|
pend 'cargo not present' unless $?.success?
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user