test/unit.rb: restore parallel option

* test/lib/test/unit.rb (_run_parallel): restore parallel option
  after retrying for --repeat-count option.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57169 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2016-12-24 09:22:21 +00:00
Родитель 52acc428f0
Коммит e4aac80a71
1 изменённых файлов: 2 добавлений и 0 удалений

Просмотреть файл

@ -445,6 +445,7 @@ module Test
quit_workers
unless @interrupt || !@options[:retry] || @need_quit
parallel = @options[:parallel]
@options[:parallel] = false
suites, rep = rep.partition {|r| r[:testcase] && r[:file] && r[:report].any? {|e| !e[2].is_a?(MiniTest::Skip)}}
suites.map {|r| r[:file]}.uniq.each {|file| require file}
@ -454,6 +455,7 @@ module Test
puts "\n""Retrying..."
_run_suites(suites, type)
end
@options[:parallel] = parallel
end
unless @options[:retry]
del_status_line or puts