Skip to content

Commit

Permalink
Ignore rm -rf failure
Browse files Browse the repository at this point in the history
http://ci.rvm.jp/results/trunk-mjit@phosphorus-docker/4213386

It's failing with:
rm: cannot remove '/tmp/ruby/v3/build/trunk-mjit/tmp/test_rubygems_20220827-13666-ii8lcp': Directory not empty
rm: cannot remove '/tmp/ruby/v3/build/trunk-mjit/tmp/test_rubygems_20220827-13666-fy77y1': Directory not empty

I'd like to make sure the following `ENV.replace` is called and see if
there's any other issues.
  • Loading branch information
k0kubun committed Aug 27, 2022
1 parent 4de0957 commit 458d49a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/rubygems/helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ def teardown

# FileUtils.rm_rf randomly fails on ci.rvm.jp trunk-mjit
if ENV['RUBY_DEBUG']&.include?('ci')
system('rm', '-rf', @tempdir.shellescape, exception: true)
system('rm', '-rf', @tempdir)
else
FileUtils.rm_rf @tempdir
end
Expand Down

0 comments on commit 458d49a

Please sign in to comment.