diff options
author | k0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-10-21 15:39:35 +0000 |
---|---|---|
committer | k0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-10-21 15:39:35 +0000 |
commit | 8949479e1a77ad62c054cd2db9b129f65c560f90 (patch) | |
tree | a0426dc5c3c9a2fe76df8a0ad1af5a9dc38f6916 /benchmark/driver.rb | |
parent | 3090169c9b5077ebcd051f9081c3a0baa8ff83e4 (diff) | |
download | ruby-8949479e1a77ad62c054cd2db9b129f65c560f90.tar.gz |
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
Diffstat (limited to 'benchmark/driver.rb')
-rw-r--r-- | benchmark/driver.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/benchmark/driver.rb b/benchmark/driver.rb index 36365af209..20c8e255fb 100644 --- a/benchmark/driver.rb +++ b/benchmark/driver.rb @@ -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 } |