[Groonga-commit] droonga/drntest at 51c20b8 [master] Handle errors in drntest itself correctly

Zurück zum Archiv-Index

YUKI Hiroshi null+****@clear*****
Tue Dec 16 18:40:28 JST 2014


YUKI Hiroshi	2014-12-16 18:40:28 +0900 (Tue, 16 Dec 2014)

  New Revision: 51c20b863062780fc1c62dadae26c31bbfa90c44
  https://github.com/droonga/drntest/commit/51c20b863062780fc1c62dadae26c31bbfa90c44

  Message:
    Handle errors in drntest itself correctly

  Modified files:
    lib/drntest/responses-normalizer.rb

  Modified: lib/drntest/responses-normalizer.rb (+4 -1)
===================================================================
--- lib/drntest/responses-normalizer.rb    2014-12-13 14:23:42 +0900 (99a7715)
+++ lib/drntest/responses-normalizer.rb    2014-12-16 18:40:28 +0900 (44bcdb6)
@@ -41,8 +41,11 @@ module Drntest
     ]
     def normalize_dump_responses
       @responses.sort_by do |response|
+        if response["error"] and response["response"]
+          response = response["response"]
+        end
         type = response["type"]
-        type_order = DUMP_TYPE_ORDER.index(type)
+        type_order = DUMP_TYPE_ORDER.index(type) || -1
         body = response["body"]
         case type
         when "dump.table"
-------------- next part --------------
HTML����������������������������...
Download 



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