summaryrefslogtreecommitdiffstats
path: root/test/runner.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-09-05 02:57:49 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-09-05 02:57:49 +0000
commitfbf2a47e39e4ffaa5ea9d1373efc04368fa500fd (patch)
treef274cad7c5c916012596883400c881e1cd86454c /test/runner.rb
parentb991a35549906b8b8aae9d241cbcdefb9ec881e6 (diff)
downloadruby-fbf2a47e39e4ffaa5ea9d1373efc04368fa500fd.tar.gz
ruby-fbf2a47e39e4ffaa5ea9d1373efc04368fa500fd.tar.xz
ruby-fbf2a47e39e4ffaa5ea9d1373efc04368fa500fd.zip
test/runner.rb: convert Version to numeric array.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4506 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/runner.rb')
-rw-r--r--test/runner.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/runner.rb b/test/runner.rb
index 92cba7efd..969b56890 100644
--- a/test/runner.rb
+++ b/test/runner.rb
@@ -3,8 +3,7 @@ require 'test/unit/testcase'
require 'optparse'
rcsid = %w$Id$
-Runner = rcsid[1].chomp(",v").freeze
-Version = rcsid[2].scan(/\d+/, &method(:Integer)).freeze
+Version = rcsid[2].scan(/\d+/).collect!(&method(:Integer)).freeze
Release = rcsid[3].freeze
class BulkTestSuite < Test::Unit::TestSuite
@@ -35,7 +34,7 @@ runners_map = {
runner = 'console'
ARGV.options do |opt|
- opt.program_name = Runner
+ opt.program_name = $0
opt.banner << " [tests...]"
opt.on("--runner=mode", runners_map, "UI mode (console, gtk,fox)") do |arg|
runner = arg