[Groonga-commit] groonga/grntest [master] Sort worker order

Back to archive index

Kouhei Sutou null+****@clear*****
Sat Aug 11 17:08:07 JST 2012


Kouhei Sutou	2012-08-11 17:08:07 +0900 (Sat, 11 Aug 2012)

  New Revision: 2d5195b5227d8b32af17d6e4de6e1a4966f0ea38
  https://github.com/groonga/grntest/commit/2d5195b5227d8b32af17d6e4de6e1a4966f0ea38

  Log:
    Sort worker order

  Modified files:
    lib/groonga/tester.rb

  Modified: lib/groonga/tester.rb (+2 -6)
===================================================================
--- lib/groonga/tester.rb    2012-08-11 17:00:42 +0900 (d4aa464)
+++ lib/groonga/tester.rb    2012-08-11 17:08:07 +0900 (9f70b6c)
@@ -306,7 +306,6 @@ module Groonga
         succeeded = true
 
         @result.measure do
-          @test_suites_result.start_worker(self)
           @reporter.start_worker(self)
           catch do |tag|
             loop do
@@ -366,7 +365,7 @@ module Groonga
     end
 
     class TestSuitesResult < Result
-      attr_reader :workers
+      attr_accessor :workers
       attr_accessor :n_total_tests
       def initialize
         super
@@ -374,10 +373,6 @@ module Groonga
         @n_total_tests = 0
       end
 
-      def start_worker(worker)
-        @workers << worker
-      end
-
       def pass_ratio
         if n_tests.zero?
           0
@@ -446,6 +441,7 @@ module Groonga
         @tester.n_workers.times do |i|
           workers << Worker.new(i, @tester, @result, @reporter)
         end
+        @result.workers = workers.dup
         @reporter.start(@result)
 
         succeeded = true
-------------- next part --------------
HTML����������������������������...
다운로드 



More information about the Groonga-commit mailing list
Back to archive index