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.
This commit is contained in:
parent
067f45ecd3
commit
30fba5f37d
@ -8,9 +8,7 @@ require 'test/unit/assertions'
|
|||||||
require_relative '../envutil'
|
require_relative '../envutil'
|
||||||
require_relative '../colorize'
|
require_relative '../colorize'
|
||||||
require 'test/unit/testcase'
|
require 'test/unit/testcase'
|
||||||
require 'fileutils'
|
|
||||||
require 'optparse'
|
require 'optparse'
|
||||||
require 'time'
|
|
||||||
|
|
||||||
# See Test::Unit
|
# See Test::Unit
|
||||||
module Test
|
module Test
|
||||||
@ -348,6 +346,8 @@ module Test
|
|||||||
warn "option."
|
warn "option."
|
||||||
warn ""
|
warn ""
|
||||||
if File.exist?('core')
|
if File.exist?('core')
|
||||||
|
require 'fileutils'
|
||||||
|
require 'time'
|
||||||
core_path = "/tmp/core.#{Time.now.utc.iso8601}"
|
core_path = "/tmp/core.#{Time.now.utc.iso8601}"
|
||||||
warn "A core file is found. Saving it at: #{core_path.dump}"
|
warn "A core file is found. Saving it at: #{core_path.dump}"
|
||||||
FileUtils.mv('core', core_path)
|
FileUtils.mv('core', core_path)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user