null+****@clear*****
null+****@clear*****
2012年 6月 8日 (金) 16:33:58 JST
Haruka Yoshihara 2012-06-08 16:33:58 +0900 (Fri, 08 Jun 2012) New Revision: e97521d1924dde19d430979295aa54cb0e1047ff Log: Use a temporary config file for HTTP tests This temporary config file is empty, so HTTP tests can't be executed. Modified files: lib/groonga/tester.rb Modified: lib/groonga/tester.rb (+7 -6) =================================================================== --- lib/groonga/tester.rb 2012-06-07 17:45:20 +0900 (b3016f7) +++ lib/groonga/tester.rb 2012-06-08 16:33:58 +0900 (3ba41af) @@ -318,15 +318,12 @@ module Groonga def run_groonga_http(context) host = "127.0.0.1" port = 50041 + db_path = context.db_path + config_file = create_temporary_config_file(host, port, db_path) pid_file = Tempfile.new("groonga.pid") command_line = [ @tester.groonga, - "--bind-address", host, - "--port", port.to_s, - "--protocol", @tester.protocol.to_s, - "--pid-path", pid_file.path, - "-d", - "-n", context.db_path, + "-c", config_file.path, ] system(*command_line) begin @@ -349,6 +346,10 @@ module Groonga end end + def create_temporary_config_file(host, port, db_path) + Tempfile.new("test-http.conf") + end + def normalize_result(result) normalized_result = "" result.each do |tag, content, options|