ruby-changes:8261
From: ryan <ko1@a...>
Date: Wed, 15 Oct 2008 13:16:56 +0900 (JST)
Subject: [ruby-changes:8261] Ruby:r19789 (trunk): Disable minitest autorunner and run manually in order to get test/unit fork/signal tests to not trigger minitest multiple times
ryan 2008-10-15 13:16:28 +0900 (Wed, 15 Oct 2008) New Revision: 19789 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=19789 Log: Disable minitest autorunner and run manually in order to get test/unit fork/signal tests to not trigger minitest multiple times Modified files: trunk/test/runner.rb Index: test/runner.rb =================================================================== --- test/runner.rb (revision 19788) +++ test/runner.rb (revision 19789) @@ -6,4 +6,14 @@ Version = rcsid[2].scan(/\d+/).collect!(&method(:Integer)).freeze Release = rcsid[3].freeze -exit Test::Unit::AutoRunner.run(true, File.dirname($0)) +# this allows minitest and test/unit to run side by side. test/unit +# tests with fork/signal were triggering minitest multiple times. +require 'minitest/unit' +MiniTest::Unit.disable_autorun + +args = ARGV.dup +result = Test::Unit::AutoRunner.run(true, File.dirname($0)) +result &&= MiniTest::Unit.new.run(args) + +exit result + -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/