Kouhei Sutou
null+****@clear*****
Wed Jun 13 10:47:13 JST 2018
Kouhei Sutou 2018-06-13 10:47:13 +0900 (Wed, 13 Jun 2018) New Revision: 764234ee3562d230675bff4993ee57f0a7f7d345 https://github.com/groonga/groonga-query-log/commit/764234ee3562d230675bff4993ee57f0a7f7d345 Message: verify-server: add --ignore-drilldown-key option Modified files: lib/groonga-query-log/command/verify-server.rb lib/groonga-query-log/server-verifier.rb Modified: lib/groonga-query-log/command/verify-server.rb (+8 -1) =================================================================== --- lib/groonga-query-log/command/verify-server.rb 2018-06-13 10:41:26 +0900 (3818411) +++ lib/groonga-query-log/command/verify-server.rb 2018-06-13 10:47:13 +0900 (f3eddc1) @@ -1,4 +1,4 @@ -# Copyright (C) 2013-2017 Kouhei Sutou <kou �� clear-code.com> +# Copyright (C) 2013-2018 Kouhei Sutou <kou �� clear-code.com> # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public @@ -138,6 +138,13 @@ module GroongaQueryLog @options.verify_cache = verify_cache end + parser.on("--ignore-drilldown-key=KEY", + "Don't compare drilldown result for KEY", + "You can specify multiple drilldown keys by", + "specifying this option multiple times") do |key| + @options.ignored_drilldown_keys << key + end + parser.separator("Debug options:") parser.separator("") Modified: lib/groonga-query-log/server-verifier.rb (+4 -1) =================================================================== --- lib/groonga-query-log/server-verifier.rb 2018-06-13 10:41:26 +0900 (5410f6b) +++ lib/groonga-query-log/server-verifier.rb 2018-06-13 10:47:13 +0900 (ec27e2d) @@ -1,4 +1,4 @@ -# Copyright (C) 2013-2017 Kouhei Sutou <kou �� clear-code.com> +# Copyright (C) 2013-2018 Kouhei Sutou <kou �� clear-code.com> # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public @@ -135,6 +135,7 @@ module GroongaQueryLog response2 = groonga2_client.execute(command) compare_options = { :care_order => @options.care_order, + :ignored_drilldown_keys => @options.ignored_drilldown_keys, } comparer = ResponseComparer.new(command, response1, response2, compare_options) @@ -173,6 +174,7 @@ module GroongaQueryLog attr_accessor :output_path attr_accessor :care_order attr_writer :verify_cache + attr_accessor :ignored_drilldown_keys def initialize @groonga1 = GroongaOptions.new @groonga2 = GroongaOptions.new @@ -193,6 +195,7 @@ module GroongaQueryLog ] @care_order = true @verify_cache = false + @ignored_drilldown_keys = [] end def request_queue_size -------------- next part -------------- HTML����������������������������... URL: https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20180613/cabe3635/attachment-0001.htm