mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* benchmark/driver.rb: enable specify label to executable.
(-e "ruby1::/path/to/ruby1; ruby2::/path/to/ruby2; ...") git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13608 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
5dd4990d0e
commit
c5f2bbaf82
2 changed files with 13 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
Wed Oct 3 17:56:22 2007 Koichi Sasada <ko1@atdot.net>
|
||||
|
||||
* benchmark/driver.rb: enable specify label to executable.
|
||||
(-e "ruby1::/path/to/ruby1; ruby2::/path/to/ruby2; ...")
|
||||
|
||||
Wed Oct 3 16:58:48 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* parse.y (parser_str_new, parser_yylex, rb_intern3): set code-range
|
||||
|
|
|
@ -45,8 +45,14 @@ class BenchmarkDriver
|
|||
e.strip!
|
||||
next if e.empty?
|
||||
|
||||
if /(.+)::(.+)/ =~ e
|
||||
# ex) ruby-a::/path/to/ruby-a
|
||||
v = $1.strip
|
||||
e = $2
|
||||
else
|
||||
v = `#{e} -v`.chomp
|
||||
v.sub!(/ patchlevel \d+/, '')
|
||||
end
|
||||
[e, v]
|
||||
}.compact
|
||||
|
||||
|
|
Loading…
Reference in a new issue