summaryrefslogtreecommitdiff
path: root/test/runner.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-12-02 12:31:44 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-12-02 12:31:44 +0000
commit086745b7d6f0edb9b0537b9980e93952b9022b1e (patch)
tree5eaee7e1c2ed82189f71b1102a43198ea4956b4d /test/runner.rb
parent76eab3527f5fc7aa05c6475b348c01f1f8cad036 (diff)
* bin/testrb: new test runner. [ruby-core:01845]
* lib/test/unit/autorunner.rb (Test::Unit::AutoRunner.run, Test::Unit::AutoRunner#initialize): take test list to run. * lib/test/unit/autorunner.rb (Test::Unit::AutoRunner::RUNNERS, Test::Unit::AutoRunner#run): should not exit inside a library, just return the result instead. * lib/test/unit.rb: ditto. * test/runner.rb: exit with the test result. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5083 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/runner.rb')
-rw-r--r--test/runner.rb5
1 files changed, 1 insertions, 4 deletions
diff --git a/test/runner.rb b/test/runner.rb
index b4501bee94..4ecc35aecc 100644
--- a/test/runner.rb
+++ b/test/runner.rb
@@ -4,7 +4,4 @@ rcsid = %w$Id$
Version = rcsid[2].scan(/\d+/).collect!(&method(:Integer)).freeze
Release = rcsid[3].freeze
-runner = Test::Unit::AutoRunner.new(true)
-runner.to_run.concat(ARGV)
-runner.to_run << File.dirname(__FILE__) if runner.to_run.empty?
-runner.run
+exit Test::Unit::AutoRunner.run(false, File.dirname($0))