diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2020-06-16 17:40:24 +0200 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2020-06-17 21:16:56 +0900 |
commit | 66b0677bcfcdbb2ae992f538b9ebd89dfea9e27a (patch) | |
tree | 5443ec200499302b22b499ec85ba162f5ad62d84 /lib | |
parent | 106d616cc8a5c95a2944f9ea3d7f99ee54042cdd (diff) |
Tweaks to play nicer with ruby-core parallelized tests
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/3213
Diffstat (limited to 'lib')
-rw-r--r-- | lib/rubygems/test_case.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/rubygems/test_case.rb b/lib/rubygems/test_case.rb index 9e1c8ea952..4a28aea747 100644 --- a/lib/rubygems/test_case.rb +++ b/lib/rubygems/test_case.rb @@ -300,7 +300,7 @@ class Gem::TestCase < Minitest::Test @orig_env = ENV.to_hash @tmp = File.expand_path("tmp") - Dir.mkdir @tmp + FileUtils.mkdir_p @tmp ENV['GEM_VENDOR'] = nil ENV['GEMRC'] = nil @@ -322,7 +322,7 @@ class Gem::TestCase < Minitest::Test @tempdir = File.join(tmpdir, "test_rubygems_#{$$}") @tempdir.tap(&Gem::UNTAINT) - FileUtils.mkdir @tempdir + FileUtils.mkdir_p @tempdir @orig_SYSTEM_WIDE_CONFIG_FILE = Gem::ConfigFile::SYSTEM_WIDE_CONFIG_FILE Gem::ConfigFile.send :remove_const, :SYSTEM_WIDE_CONFIG_FILE @@ -445,7 +445,7 @@ class Gem::TestCase < Minitest::Test Dir.chdir @current_dir - FileUtils.rm_rf @tmp + FileUtils.rm_rf @tempdir ENV.replace(@orig_env) |