[Groonga-commit] groonga/groonga-query-log at 82ef808 [master] run-regression-test: use a predicate method

Back to archive index
Yasuhiro Horimoto null+****@clear*****
Wed Nov 7 10:39:25 JST 2018


Yasuhiro Horimoto	2018-11-07 10:39:25 +0900 (Wed, 07 Nov 2018)

  Revision: 82ef80876197788a54d1da97854a7d91dfbb28d8
  https://github.com/groonga/groonga-query-log/commit/82ef80876197788a54d1da97854a7d91dfbb28d8

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

  Message:
    run-regression-test: use a predicate method

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

  Modified: lib/groonga-query-log/server-verifier.rb (+5 -1)
===================================================================
--- lib/groonga-query-log/server-verifier.rb    2018-11-07 10:34:15 +0900 (523703b)
+++ lib/groonga-query-log/server-verifier.rb    2018-11-07 10:39:25 +0900 (433fd7a)
@@ -51,7 +51,7 @@ module GroongaQueryLog
         n_commands = 0
         callback_per_n_commands = 100
         parser.parse(input) do |statistic|
-          break if (!@same or @client_error_is_occurred) and****@optio*****_on_failure?
+          break if stop_parse?
 
           command = statistic.command
           next if command.nil?
@@ -140,6 +140,10 @@ module GroongaQueryLog
       @same and !@client_error_is_occurred
     end
 
+    def stop_parse?
+      (!@same or @client_error_is_occurred) and****@optio*****_on_failure?
+    end
+
     def run_consumer_stop?
       run_consumer or****@optio*****_on_failure?
     end
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20181107/bc88c655/attachment-0001.html>


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