1
0
Fork 0
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:
Takashi Kokubun 2020-11-26 19:23:34 -08:00
parent f5ca3ff4db
commit 1898e9558a
No known key found for this signature in database
GPG key ID: 6FFC433B12EE23DD

View file

@ -45,10 +45,8 @@ class TestJIT < Test::Unit::TestCase
# ci.rvm.jp caches its build environment. Clean up temporary files left by SEGV. # ci.rvm.jp caches its build environment. Clean up temporary files left by SEGV.
if ENV['RUBY_DEBUG']&.include?('ci') if ENV['RUBY_DEBUG']&.include?('ci')
Dir.glob("#{ENV.fetch('TMPDIR', '/tmp')}/_ruby_mjit_p*u*.*").each do |file| 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}"
puts "test/ruby/test_jit.rb: removing #{file}" File.unlink(file)
File.unlink(file)
end
end end
end end