* lib/test/unit.rb (Test::Unit::Runner#_run_parallel): no need to
retry skipped test. this fix makes 40% faster the whole test-all with -j5 on Windows. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38257 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
85e3560a3b
commit
8b2a4e68c3
@ -1,3 +1,9 @@
|
|||||||
|
Fri Dec 7 16:00:57 2012 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||||
|
|
||||||
|
* lib/test/unit.rb (Test::Unit::Runner#_run_parallel): no need to
|
||||||
|
retry skipped test. this fix makes 40% faster the whole test-all
|
||||||
|
with -j5 on Windows.
|
||||||
|
|
||||||
Fri Dec 7 14:22:29 2012 Eric Hodel <drbrain@segment7.net>
|
Fri Dec 7 14:22:29 2012 Eric Hodel <drbrain@segment7.net>
|
||||||
|
|
||||||
* lib/rdoc/markup/to_joined_paragraph.rb: Completed documentation
|
* lib/rdoc/markup/to_joined_paragraph.rb: Completed documentation
|
||||||
|
@ -587,8 +587,8 @@ module Test
|
|||||||
!@workers.any? {|x| [:running, :prepare].include? x.status})
|
!@workers.any? {|x| [:running, :prepare].include? x.status})
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
rescue Interrupt => e
|
rescue Interrupt => ex
|
||||||
@interrupt = e
|
@interrupt = ex
|
||||||
return result
|
return result
|
||||||
ensure
|
ensure
|
||||||
watchdog.kill if watchdog
|
watchdog.kill if watchdog
|
||||||
@ -603,7 +603,7 @@ module Test
|
|||||||
|
|
||||||
unless @interrupt || !@options[:retry] || @need_quit
|
unless @interrupt || !@options[:retry] || @need_quit
|
||||||
@options[:parallel] = false
|
@options[:parallel] = false
|
||||||
suites, rep = rep.partition {|r| r[:testcase] && r[:file] && !r[:report].empty?}
|
suites, rep = rep.partition {|r| r[:testcase] && r[:file] && !(r[:report].select{|e| !e[2].is_a?(MiniTest::Skip)}).empty?}
|
||||||
suites.map {|r| r[:file]}.uniq.each {|file| require file}
|
suites.map {|r| r[:file]}.uniq.each {|file| require file}
|
||||||
suites.map! {|r| eval("::"+r[:testcase])}
|
suites.map! {|r| eval("::"+r[:testcase])}
|
||||||
del_status_line or puts
|
del_status_line or puts
|
||||||
|
Loading…
x
Reference in New Issue
Block a user