[Groonga-commit] groonga/grntest at 081df9d [master] Care nil path case

Back to archive index

Kouhei Sutou null+****@clear*****
Wed Aug 16 09:35:46 JST 2017


Kouhei Sutou	2017-08-16 09:35:46 +0900 (Wed, 16 Aug 2017)

  New Revision: 081df9d3b1df367fbb4c60d908c00cb40847c3b1
  https://github.com/groonga/grntest/commit/081df9d3b1df367fbb4c60d908c00cb40847c3b1

  Message:
    Care nil path case

  Modified files:
    lib/grntest/test-runner.rb

  Modified: lib/grntest/test-runner.rb (+6 -1)
===================================================================
--- lib/grntest/test-runner.rb    2017-08-16 09:30:24 +0900 (1efdf49)
+++ lib/grntest/test-runner.rb    2017-08-16 09:35:46 +0900 (2967d5b)
@@ -693,7 +693,12 @@ http {
         body.each do |key, value|
           case key
           when "path"
-            normalized_body[key] = normalize_plugin_path(value)
+            if value
+              normalized_value = normalize_plugin_path(value)
+            else
+              normalized_value = value
+            end
+            normalized_body[key] = normalized_value
           when "disk_usage"
             normalized_body[key] = 0
           else
-------------- next part --------------
HTML����������������������������...
Download 



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