YUKI Hiroshi
null+****@clear*****
Mon Nov 25 19:10:46 JST 2013
YUKI Hiroshi 2013-11-25 19:10:46 +0900 (Mon, 25 Nov 2013) New Revision: 3ca73a959ecc9f28167265d417f0e83440e665fb https://github.com/droonga/drntest/commit/3ca73a959ecc9f28167265d417f0e83440e665fb Message: Find the path to fluentd by self Modified files: lib/drntest/tester.rb Modified: lib/drntest/tester.rb (+8 -1) =================================================================== --- lib/drntest/tester.rb 2013-11-25 19:01:09 +0900 (218f448) +++ lib/drntest/tester.rb 2013-11-25 19:10:46 +0900 (1c902e1) @@ -63,6 +63,12 @@ module Drntest tester.catalog = catalog end + parser.on("--fluentd=PATH", + "Path to the fluentd executable", + "(#{tester.fluentd})") do |tag| + tester.tag = tag + end + parser.on("--testcase=PATTERN", "Run only testcases which have a name matched to the given PATTERN") do |pattern| tester.pattern = pattern @@ -72,7 +78,7 @@ module Drntest end end - attr_accessor :port, :host, :tag, :pattern, :config, :catalog + attr_accessor :port, :host, :tag, :fluentd, :pattern, :config, :catalog def initialize @port = 24224 @@ -80,6 +86,7 @@ module Drntest @tag = "droonga" @config = nil @catalog = nil + @fluentd = `which fluentd` @pattern = nil end -------------- next part -------------- HTML����������������������������... Download