Kouhei Sutou
null+****@clear*****
Tue Nov 26 00:14:37 JST 2013
Kouhei Sutou 2013-11-26 00:14:37 +0900 (Tue, 26 Nov 2013) New Revision: 37407d08701e69a9c0d8d7f4abbb6ccdee2613a8 https://github.com/droonga/fluent-plugin-droonga/commit/37407d08701e69a9c0d8d7f4abbb6ccdee2613a8 Message: Add library path to make test runnable without install Modified files: test/command/run-test.rb Modified: test/command/run-test.rb (+5 -1) =================================================================== --- test/command/run-test.rb 2013-11-25 23:56:51 +0900 (fe72d85) +++ test/command/run-test.rb 2013-11-26 00:14:37 +0900 (e476bd6) @@ -31,6 +31,8 @@ def need_bundle_install?(gemfile, gemfile_lock) end base_dir = File.dirname(__FILE__) +lib_dir = File.expand_path(File.join(base_dir, "..", "..", "lib")) + gemfile = File.join(base_dir, "Gemfile") gemfile_lock = "#{gemfile}.lock" @@ -40,7 +42,9 @@ if need_bundle_install?(gemfile, gemfile_lock) end end -drntest_options = ARGV.dup +drntest_options = [] +drntest_options.concat(["--fluentd-options", "-I#{lib_dir}"]) +drntest_options.concat(ARGV.dup) drntest_options << File.join(base_dir, "suite") run(File.join(base_dir, "bin", "drntest"), -------------- next part -------------- HTML����������������������������...Download