diff options
author | Takashi Kokubun <takashikkbn@gmail.com> | 2020-12-03 21:24:35 -0800 |
---|---|---|
committer | Takashi Kokubun <takashikkbn@gmail.com> | 2020-12-03 21:24:36 -0800 |
commit | 30fba5f37d9058cc7e4d852ff211313f13ded3a1 (patch) | |
tree | 1c77e2c8b8142e3c4bd29936aa2214254d4fac5c /tool | |
parent | 067f45ecd379ea44f294084c8f342c69f735c018 (diff) |
Do not require time and fileutils by default
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.
Diffstat (limited to 'tool')
-rw-r--r-- | tool/lib/test/unit.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tool/lib/test/unit.rb b/tool/lib/test/unit.rb index 8b29219b09..33466bdc96 100644 --- a/tool/lib/test/unit.rb +++ b/tool/lib/test/unit.rb @@ -8,9 +8,7 @@ require 'test/unit/assertions' require_relative '../envutil' require_relative '../colorize' require 'test/unit/testcase' -require 'fileutils' require 'optparse' -require 'time' # See Test::Unit module Test @@ -348,6 +346,8 @@ module Test 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) |