[Groonga-commit] droonga/drntest at 49de546 [master] Accept grntest style options

Back to archive index

YUKI Hiroshi null+****@clear*****
Mon Nov 25 17:25:36 JST 2013


YUKI Hiroshi	2013-11-25 17:25:36 +0900 (Mon, 25 Nov 2013)

  New Revision: 49de546b99b31f096dffd7bc061b9101fc1d4948
  https://github.com/droonga/drntest/commit/49de546b99b31f096dffd7bc061b9101fc1d4948

  Message:
    Accept grntest style options

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

  Modified: lib/drntest/test-runner.rb (+4 -4)
===================================================================
--- lib/drntest/test-runner.rb    2013-11-25 17:24:26 +0900 (e5ee734)
+++ lib/drntest/test-runner.rb    2013-11-25 17:25:36 +0900 (5255b84)
@@ -65,8 +65,8 @@ module Drntest
     private
     def prepare
       options = load_options
-      self.config_file = Pathname(options[:CONFIG]) if options[:CONFIG]
-      self.catalog_file = Pathname(options[:CATALOG]) if options[:CATALOG]
+      self.config_file = Pathname(options[:config]) if options[:config]
+      self.catalog_file = Pathname(options[:catalog]) if options[:catalog]
     end
 
     def setup
@@ -126,8 +126,8 @@ module Drntest
     def load_options
       options = {}
       target_path.read.each_line do |line|
-        next unless /\A#([^\s]+)\s+(.+)\z/ =~ line
-        options[$1] = $2
+        next unless /\A#@([^\s]+)\s+(.+)\z/ =~ line
+        options[$1.to_sym] = $2
       end
       options
     end
-------------- next part --------------
HTML����������������������������...
Download 



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