[Groonga-commit] groonga/groonga [master] test: switch file name according to options

Back to archive index

null+****@clear***** null+****@clear*****
2012年 5月 30日 (水) 17:23:17 JST


HAYASHI Kentaro	2012-05-30 17:23:17 +0900 (Wed, 30 May 2012)

  New Revision: ae597c141d3b75f46db2925884870332b6530193

  Log:
    test: switch file name according to options

  Modified files:
    test/function/tools/geo/generate-grntest-data.rb

  Modified: test/function/tools/geo/generate-grntest-data.rb (+5 -1)
===================================================================
--- test/function/tools/geo/generate-grntest-data.rb    2012-05-30 17:07:31 +0900 (3374680)
+++ test/function/tools/geo/generate-grntest-data.rb    2012-05-30 17:23:17 +0900 (331185a)
@@ -364,7 +364,11 @@ class GrnTestData
   end
 
   def generate_filename
-    "#{latitude_position}.test"
+    if****@optio*****_key?(:test) and @options[:test]
+      "#{latitude_position}.test"
+    else
+      "#{latitude_position}.expected"
+    end
   end
 
   def longitude_position




Groonga-commit メーリングリストの案内
Back to archive index