mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
e79f1941b2
This patch contains the fowllowing hacks: (1) Add "--timetable-data=FILE" option for test-all This option enables to dump timeline event contains worker, suite, and start/end time. (2) remove TestJIT in test_jit_debug.rb on parallel test. it is duplicated test. (3) move test_jit.rb and test_jit_debug.rb at first because these two tests are bottleneck of parallel tests. On my environment, `make test-all TESTS=-j12` reduced the total time 190 seconds -> 140 seconds.
17 lines
421 B
Ruby
17 lines
421 B
Ruby
require_relative 'test_jit'
|
|
|
|
return unless defined?(TestJIT)
|
|
return if ENV.key?('APPVEYOR')
|
|
return if ENV.key?('RUBYCI_NICKNAME')
|
|
return if ENV['RUBY_DEBUG']&.include?('ci') # ci.rvm.jp
|
|
return if /mswin/ =~ RUBY_PLATFORM
|
|
|
|
class TestJITDebug < TestJIT
|
|
@@test_suites.delete TestJIT if self.respond_to? :on_parallel_worker?
|
|
|
|
def setup
|
|
super
|
|
# let `#eval_with_jit` use --jit-debug
|
|
@jit_debug = true
|
|
end
|
|
end
|