Skip to content

Commit

Permalink
Do not require time and fileutils by default
Browse files Browse the repository at this point in the history
I have no idea what I'm doing, but the previous commit caused lots of CI
failures like https://github.com/ruby/ruby/runs/1496949568 and this
place is the most suspicious.
  • Loading branch information
k0kubun committed Dec 4, 2020
1 parent 067f45e commit 30fba5f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tool/lib/test/unit.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@
require_relative '../envutil'
require_relative '../colorize'
require 'test/unit/testcase'
require 'fileutils'
require 'optparse'
require 'time'

# See Test::Unit
module Test
Expand Down Expand Up @@ -348,6 +346,8 @@ def after_worker_down(worker, e=nil, c=false)
warn "option."
warn ""
if File.exist?('core')
require 'fileutils'
require 'time'
core_path = "/tmp/core.#{Time.now.utc.iso8601}"
warn "A core file is found. Saving it at: #{core_path.dump}"
FileUtils.mv('core', core_path)
Expand Down

0 comments on commit 30fba5f

Please sign in to comment.