ruby-changes:73076
From: Takashi <ko1@a...>
Date: Sat, 27 Aug 2022 15:36:24 +0900 (JST)
Subject: [ruby-changes:73076] 13d2225c46 (master): Try rm -rf instead of FileUtils.rm_rf
https://git.ruby-lang.org/ruby.git/commit/?id=13d2225c46 From 13d2225c460cfc3daa679acb89433289527a844f Mon Sep 17 00:00:00 2001 From: Takashi Kokubun <takashikkbn@g...> Date: Fri, 26 Aug 2022 23:32:01 -0700 Subject: Try rm -rf instead of FileUtils.rm_rf FileUtils.rm_rf started to randomly fail on http://ci.rvm.jp/results/trunk-mjit@phosphorus-docker since around https://github.com/ruby/fileutils/pull/99. --- test/rubygems/helper.rb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test/rubygems/helper.rb b/test/rubygems/helper.rb index cb0177adb2..b9bc72a1f3 100644 --- a/test/rubygems/helper.rb +++ b/test/rubygems/helper.rb @@ -465,7 +465,12 @@ class Gem::TestCase < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/rubygems/helper.rb#L465 Dir.chdir @current_dir - FileUtils.rm_rf @tempdir + # FileUtils.rm_rf randomly fails on ci.rvm.jp trunk-mjit + if ENV['RUBY_DEBUG']&.include?('ci') + system('rm', '-rf', @tempdir.shellescape, exception: true) + else + FileUtils.rm_rf @tempdir + end ENV.replace(@orig_env) -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/