1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

lib/test/unit.rb: use local output

* lib/test/unit.rb (Test::Unit::Runner#output): prefer local output to
  get rid of unexpected side effect in test/minitest/metametameta.rb.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35580 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2012-05-07 19:47:47 +00:00
parent 13c76c07e4
commit 5789992f33
2 changed files with 9 additions and 2 deletions

View file

@ -1,4 +1,7 @@
Tue May 8 03:54:34 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
Tue May 8 04:47:44 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
* lib/test/unit.rb (Test::Unit::Runner#output): prefer local output to
get rid of unexpected side effect in test/minitest/metametameta.rb.
* lib/test/unit.rb (MiniTest#run_test): show the running test in $0.

View file

@ -655,10 +655,14 @@ module Test
alias mini_run_suite _run_suite
def output
@output || super
end
def _prepare_run(suites, type)
if @tty
@verbose ||= !options[:parallel]
MiniTest::Unit.output = StatusLineOutput.new(self)
@output = StatusLineOutput.new(self)
end
if /\A\/(.*)\/\z/ =~ (filter = options[:filter])
options[:filter] = filter = Regexp.new($1)