[Groonga-commit] groonga/groonga-query-log at 877fb43 [master] run-regression-test: ensure outputting command

Zurück zum Archiv-Index

Kouhei Sutou null+****@clear*****
Mon Apr 24 11:12:40 JST 2017


Kouhei Sutou	2017-04-24 11:12:40 +0900 (Mon, 24 Apr 2017)

  New Revision: 877fb435ea68429562c887fc806c078b6e170e7e
  https://github.com/groonga/groonga-query-log/commit/877fb435ea68429562c887fc806c078b6e170e7e

  Message:
    run-regression-test: ensure outputting command

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

  Modified: lib/groonga/query-log/server-verifier.rb (+3 -2)
===================================================================
--- lib/groonga/query-log/server-verifier.rb    2017-04-24 11:06:53 +0900 (45b5097)
+++ lib/groonga/query-log/server-verifier.rb    2017-04-24 11:12:40 +0900 (4d6ab94)
@@ -131,7 +131,7 @@ module Groonga
 
       def verify_command(groonga1_client, groonga2_client, command)
         command["cache"] = "no" if****@optio*****_cache?
-        command["output_type"] = :json
+        command["output_type"] = "json"
         response1 = groonga1_client.execute(command)
         response2 = groonga2_client.execute(command)
         compare_options = {
@@ -146,7 +146,8 @@ module Groonga
 
       def report_result(output, result)
         command, response1, response2 = result
-        output.puts("command: #{command.original_source}")
+        command_source = command.original_source || command.to_uri_format
+        output.puts("command: #{command_source}")
         output.puts("response1: #{response1.body.to_json}")
         output.puts("response2: #{response2.body.to_json}")
       end
-------------- next part --------------
HTML����������������������������...
Download 



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