YUKI Hiroshi
null+****@clear*****
Mon Nov 25 17:39:13 JST 2013
YUKI Hiroshi 2013-11-25 17:39:13 +0900 (Mon, 25 Nov 2013) New Revision: fe5cc102c63d524c409aa8f7d9c68a272cb657e7 https://github.com/droonga/drntest/commit/fe5cc102c63d524c409aa8f7d9c68a272cb657e7 Message: Start and stop the server by self Modified files: lib/drntest/test-runner.rb Modified: lib/drntest/test-runner.rb (+11 -0) =================================================================== --- lib/drntest/test-runner.rb 2013-11-25 17:25:36 +0900 (5255b84) +++ lib/drntest/test-runner.rb 2013-11-25 17:39:13 +0900 (b831b39) @@ -84,9 +84,20 @@ module Drntest FileUtils.cp(config_file, temporary_config) temporary_catalog = temporary_dir + "catalog.json" FileUtils.cp(catalog_file, temporary_catalog) + + engine_command = "fluentd --config #{temporary_config}" + engine_env = { + "DROONGA_CATALOG" => temporary_catalog, + } + engine_options = { + :chdir => temporary_dir, + STDERR => STDOUT, + } + @engine_pid = Process.spawn(engine_env, engine_command, engine_options) end def teardown + Process.kill(:KILL, @engine_pid) FileUtils.rm_rf(temporary_dir.to_s) end -------------- next part -------------- HTML����������������������������...Download