ruby-changes:61747
From: David <ko1@a...>
Date: Wed, 17 Jun 2020 21:17:23 +0900 (JST)
Subject: [ruby-changes:61747] 66b0677bcf (master): Tweaks to play nicer with ruby-core parallelized tests
https://git.ruby-lang.org/ruby.git/commit/?id=66b0677bcf From 66b0677bcfcdbb2ae992f538b9ebd89dfea9e27a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= <deivid.rodriguez@r...> Date: Tue, 16 Jun 2020 17:40:24 +0200 Subject: Tweaks to play nicer with ruby-core parallelized tests diff --git a/lib/rubygems/test_case.rb b/lib/rubygems/test_case.rb index 9e1c8ea..4a28aea 100644 --- a/lib/rubygems/test_case.rb +++ b/lib/rubygems/test_case.rb @@ -300,7 +300,7 @@ class Gem::TestCase < Minitest::Test https://github.com/ruby/ruby/blob/trunk/lib/rubygems/test_case.rb#L300 @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 https://github.com/ruby/ruby/blob/trunk/lib/rubygems/test_case.rb#L322 @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 https://github.com/ruby/ruby/blob/trunk/lib/rubygems/test_case.rb#L445 Dir.chdir @current_dir - FileUtils.rm_rf @tmp + FileUtils.rm_rf @tempdir ENV.replace(@orig_env) -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/