[Groonga-commit] droonga/drntest at 0e55191 [master] Setup test environment

Back to archive index

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


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

  New Revision: 0e5519105a407c4ce03e312e89c1b17fd0747dbf
  https://github.com/droonga/drntest/commit/0e5519105a407c4ce03e312e89c1b17fd0747dbf

  Message:
    Setup test environment

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

  Modified: lib/drntest/test-runner.rb (+8 -2)
===================================================================
--- lib/drntest/test-runner.rb    2013-11-25 17:24:09 +0900 (faf7a12)
+++ lib/drntest/test-runner.rb    2013-11-25 17:24:26 +0900 (e5ee734)
@@ -77,7 +77,13 @@ module Drntest
         raise "Missing catalog file: #{catalog_file.to_s}"
       end
 
-      FileUtils.rm_rf(temporary_dir.to_s)
+      FileUtils.rm_rf(temporary_dir)
+      FileUtils.mkdir_p(temporary_dir)
+
+      temporary_config = temporary_dir + "fluentd.conf"
+      FileUtils.cp(config_file, temporary_config)
+      temporary_catalog = temporary_dir + "catalog.json"
+      FileUtils.cp(catalog_file, temporary_catalog)
     end
 
     def teardown
@@ -89,7 +95,7 @@ module Drntest
     end
 
     def process_requests
-      results = TestResults.new(target_path.to_s)
+      results = TestResults.new(target_path)
 
       load_request_envelopes.each do |request|
         executor = Executor.new(tester, request)
-------------- next part --------------
HTML����������������������������...
Download 



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