Kouhei Sutou
null+****@clear*****
Mon Apr 24 11:20:15 JST 2017
Kouhei Sutou 2017-04-24 11:20:15 +0900 (Mon, 24 Apr 2017) New Revision: 71b01dfe60142eece26a71a0c183e0ca6ef28652 https://github.com/groonga/groonga-query-log/commit/71b01dfe60142eece26a71a0c183e0ca6ef28652 Message: run-regression-test: unify common code Modified files: lib/groonga/query-log/command/run-regression-test.rb Modified: lib/groonga/query-log/command/run-regression-test.rb (+6 -2) =================================================================== --- lib/groonga/query-log/command/run-regression-test.rb 2017-04-24 11:12:40 +0900 (11ce0d8) +++ lib/groonga/query-log/command/run-regression-test.rb 2017-04-24 11:20:15 +0900 (f6763d9) @@ -364,7 +364,7 @@ module Groonga puts("Running test against query log...: #{query_log_path}") end begin - if****@old*****_persistent_cache? or****@new*****_persistent_cache? + if use_persistent_cache? callback = lambda do if****@old*****_persistent_cache? @old.shutdown @@ -409,7 +409,7 @@ module Groonga ] command_line << "--no-care-order" if @options[:care_order] == false command_line << query_log_path.to_s - if****@old*****_persistent_cache? or****@new*****_persistent_cache? + if use_persistent_cache? command_line << "--verify-cache" end verify_server = VerifyServer.new @@ -423,6 +423,10 @@ module Groonga def test_log_path(query_log_path) @working_directory + "results" + query_log_path.basename end + + def use_persistent_cache? + @old.use_persistent_cache? or****@new*****_persistent_cache? + end end end end -------------- next part -------------- HTML����������������������������...Download