mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
driver.rb: add option to specify target with rbenv
[close GH-1724] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60299 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
3090169c9b
commit
8949479e1a
1 changed files with 5 additions and 0 deletions
|
@ -381,6 +381,11 @@ if __FILE__ == $0
|
|||
opt[:execs] << path
|
||||
}
|
||||
}
|
||||
o.on('--rbenv [VERSIONS]', 'Specify benchmark targets with rbenv version (vX.X.X;vX.X.X;...)'){|v|
|
||||
v.split(/;/).each{|version|
|
||||
opt[:execs] << "#{version}::#{`RBENV_VERSION='#{version}' rbenv which ruby`.rstrip}"
|
||||
}
|
||||
}
|
||||
o.on('-d', '--directory [DIRECTORY]', "Benchmark suites directory"){|d|
|
||||
opt[:dir] = d
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue