[前][次][番号順一覧][スレッド一覧]

ruby-changes:63759

From: Takashi <ko1@a...>
Date: Fri, 27 Nov 2020 12:25:31 +0900 (JST)
Subject: [ruby-changes:63759] 1898e9558a (master): Always clean up leftovers at ci.rvm.jp

https://git.ruby-lang.org/ruby.git/commit/?id=1898e9558a

From 1898e9558a55fa2558fb52d63bbb30bd8c513e50 Mon Sep 17 00:00:00 2001
From: Takashi Kokubun <takashikkbn@g...>
Date: Thu, 26 Nov 2020 19:23:34 -0800
Subject: Always clean up leftovers at ci.rvm.jp

to prevent failures like
http://ci.rvm.jp/logfiles/brlog.trunk-mjit.20201126-182515.

Since fa1250a506e9b6a1bcbf664f6b7b9c06e045d9b9, it should be safe to do
this.

diff --git a/test/ruby/test_jit.rb b/test/ruby/test_jit.rb
index c0cc28f..e5e8293 100644
--- a/test/ruby/test_jit.rb
+++ b/test/ruby/test_jit.rb
@@ -45,10 +45,8 @@ class TestJIT < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_jit.rb#L45
     # 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
 
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]