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.
This commit is contained in:
parent
f97af5cdc3
commit
13d2225c46
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user