From c5f2bbaf829d35c65ccab8ef8d209646b552c4da Mon Sep 17 00:00:00 2001 From: ko1 Date: Wed, 3 Oct 2007 08:58:56 +0000 Subject: * 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 --- benchmark/driver.rb | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'benchmark') diff --git a/benchmark/driver.rb b/benchmark/driver.rb index 2de699cb1d..dd6e1bf597 100644 --- a/benchmark/driver.rb +++ b/benchmark/driver.rb @@ -45,8 +45,14 @@ class BenchmarkDriver e.strip! next if e.empty? - v = `#{e} -v`.chomp - v.sub!(/ patchlevel \d+/, '') + 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 -- cgit v1.2.3