Skip to content

Commit

Permalink
Resolve relative path based on the current directory
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Nov 27, 2013
1 parent 17154b1 commit 83432c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/drntest/tester.rb
Expand Up @@ -59,7 +59,7 @@ def create_option_parser(tester)
parser.on("--base=PATH",
"Path to the base directory including test suite, config and fixture",
"(#{tester.base_path})") do |base_path|
tester.base_path = Pathname(base_path).expand_path(File.dirname(__FILE__))
tester.base_path = Pathname(base_path).expand_path(Dir.pwd)
end

parser.on("--config=NAME",
Expand Down Expand Up @@ -99,7 +99,7 @@ def initialize
@port = 24224
@host = "localhost"
@tag = "droonga"
@base_path = Pathname(File.dirname(__FILE__))
@base_path = Pathname(Dir.pwd)
@config = "default"
@fluentd = "fluentd"
@fluentd_options = []
Expand Down

0 comments on commit 83432c3

Please sign in to comment.