null+****@clear*****
null+****@clear*****
2012年 6月 12日 (火) 15:49:08 JST
Haruka Yoshihara 2012-06-12 15:49:08 +0900 (Tue, 12 Jun 2012)
New Revision: e90d6cd1600368798e3085c256c1230cb8fdc06e
Log:
Create groonga-httpd log files only when --keep-database option is specified
Modified files:
lib/groonga/tester.rb
Modified: lib/groonga/tester.rb (+6 -3)
===================================================================
--- lib/groonga/tester.rb 2012-06-12 15:15:49 +0900 (a89ce21)
+++ lib/groonga/tester.rb 2012-06-12 15:49:08 +0900 (ab49778)
@@ -260,7 +260,7 @@ module Groonga
end
def create_temporary_directory
- path = "tmp"
+ path = temporary_path
FileUtils.rm_rf(path)
FileUtils.mkdir_p(path)
begin
@@ -275,6 +275,10 @@ module Groonga
end
end
+ def temporary_path
+ "tmp"
+ end
+
def keep_database_path
@test_script_path.to_s.gsub(/\//, ".")
end
@@ -363,11 +367,10 @@ module Groonga
else
db_path = context.db_path
config_file = create_config_file(host, port, db_path, pid_file)
- FileUtils.mkdir_p(keep_database_path)
command_line = [
@tester.groonga_httpd,
"-c", config_file.path,
- "-p", keep_database_path,
+ "-p", File.join(File.realpath(temporary_path), "/"),
]
end
command_line