[前][次][番号順一覧][スレッド一覧]

ruby-changes:45096

From: nobu <ko1@a...>
Date: Sat, 24 Dec 2016 18:22:27 +0900 (JST)
Subject: [ruby-changes:45096] nobu:r57169 (trunk): test/unit.rb: restore parallel option

nobu	2016-12-24 18:22:21 +0900 (Sat, 24 Dec 2016)

  New Revision: 57169

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=57169

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

  Modified files:
    trunk/test/lib/test/unit.rb
Index: test/lib/test/unit.rb
===================================================================
--- test/lib/test/unit.rb	(revision 57168)
+++ test/lib/test/unit.rb	(revision 57169)
@@ -445,6 +445,7 @@ module Test https://github.com/ruby/ruby/blob/trunk/test/lib/test/unit.rb#L445
           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 https://github.com/ruby/ruby/blob/trunk/test/lib/test/unit.rb#L455
               puts "\n""Retrying..."
               _run_suites(suites, type)
             end
+            @options[:parallel] = parallel
           end
           unless @options[:retry]
             del_status_line or puts

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]