diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-05-11 13:39:35 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-05-11 13:39:35 +0000 |
commit | b7a1480540d401704f12132b52f04aea6fdf42c3 (patch) | |
tree | 86e68757a41392058265f49f83bfdd009821146f /bootstraptest | |
parent | 7467524ca29657897f8439c75fcde65a0b2c3b6c (diff) | |
download | ruby-b7a1480540d401704f12132b52f04aea6fdf42c3.tar.gz |
* bootstraptest/runner.rb (main): handle relative path -r options.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16363 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bootstraptest')
-rw-r--r-- | bootstraptest/runner.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bootstraptest/runner.rb b/bootstraptest/runner.rb index b5237c21f5..07d6efcb61 100644 --- a/bootstraptest/runner.rb +++ b/bootstraptest/runner.rb @@ -52,7 +52,8 @@ def main when /\A--ruby=(.*)/ @ruby = $1 @ruby.gsub!(/^([^ ]*)/){File.expand_path($1)} - @ruby.gsub!(/-I([^ ]*)/){"-I"+File.expand_path($1)} + @ruby.gsub!(/(\s+-I\s*)(\S+)/){$1+File.expand_path($2)} + @ruby.gsub!(/(\s+-r\s*)(\.\.?\/\S+)/){$1+File.expand_path($2)} true when /\A--sets=(.*)/ tests = Dir.glob("#{File.dirname($0)}/test_{#{$1}}*.rb") |