diff options
author | Takashi Kokubun <takashikkbn@gmail.com> | 2022-08-26 23:32:01 -0700 |
---|---|---|
committer | Takashi Kokubun <takashikkbn@gmail.com> | 2022-08-26 23:35:45 -0700 |
commit | 13d2225c460cfc3daa679acb89433289527a844f (patch) | |
tree | b04c440bd89dad022ac4d12e11a8dad349ca5116 /test | |
parent | f97af5cdc3a7de0c6d0273c29299d1ddaa4a143c (diff) | |
download | ruby-13d2225c460cfc3daa679acb89433289527a844f.tar.gz |
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.
Diffstat (limited to 'test')
-rw-r--r-- | test/rubygems/helper.rb | 7 |
1 files changed, 6 insertions, 1 deletions
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 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) |