[Groonga-commit] groonga/groonga-query-log at 335653c [master] run-regression-test: fix to stop the consumer on stop-on-failure mode

Zurück zum Archiv-Index
Yasuhiro Horimoto null+****@clear*****
Wed Nov 7 10:34:15 JST 2018


Yasuhiro Horimoto	2018-11-07 10:34:15 +0900 (Wed, 07 Nov 2018)

  Revision: 335653cc6e9d98e1d3efc6ea36d4647e28b7cef9
  https://github.com/groonga/groonga-query-log/commit/335653cc6e9d98e1d3efc6ea36d4647e28b7cef9

  Merged a90ef28: Merge pull request #35 from komainu8/improve_stop_on_failure

  Message:
    run-regression-test: fix to stop the consumer on stop-on-failure mode

  Modified files:
    lib/groonga-query-log/server-verifier.rb

  Modified: lib/groonga-query-log/server-verifier.rb (+6 -2)
===================================================================
--- lib/groonga-query-log/server-verifier.rb    2018-11-06 17:54:37 +0900 (7cfc1bb)
+++ lib/groonga-query-log/server-verifier.rb    2018-11-07 10:34:15 +0900 (523703b)
@@ -79,7 +79,7 @@ module GroongaQueryLog
       @options.n_clients.times.collect do
         Thread.new do
           loop do
-            break if run_consumer
+            break if run_consumer_stop?
           end
         end
       end
@@ -136,10 +136,14 @@ module GroongaQueryLog
       @options.target_command_name?(command.command_name)
     end
 
-    def  different_or_error_results?
+    def different_or_error_results?
       @same and !@client_error_is_occurred
     end
 
+    def run_consumer_stop?
+      run_consumer or****@optio*****_on_failure?
+    end
+
     def verify_command(groonga1_client, groonga2_client, command)
       command["cache"] = "no" if****@optio*****_cache?
       command["output_type"] = "json"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20181107/5f969bcc/attachment-0001.html>


More information about the Groonga-commit mailing list
Zurück zum Archiv-Index