mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Always clean up leftovers at ci.rvm.jp
to prevent failures like
http://ci.rvm.jp/logfiles/brlog.trunk-mjit.20201126-182515.
Since fa1250a506
, it should be safe to do
this.
This commit is contained in:
parent
f5ca3ff4db
commit
1898e9558a
1 changed files with 2 additions and 4 deletions
|
@ -45,10 +45,8 @@ class TestJIT < Test::Unit::TestCase
|
|||
# ci.rvm.jp caches its build environment. Clean up temporary files left by SEGV.
|
||||
if ENV['RUBY_DEBUG']&.include?('ci')
|
||||
Dir.glob("#{ENV.fetch('TMPDIR', '/tmp')}/_ruby_mjit_p*u*.*").each do |file|
|
||||
if File.mtime(file) < Time.now - 60 * 60 * 24
|
||||
puts "test/ruby/test_jit.rb: removing #{file}"
|
||||
File.unlink(file)
|
||||
end
|
||||
puts "test/ruby/test_jit.rb: removing #{file}"
|
||||
File.unlink(file)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue