diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-03-19 12:56:25 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-03-19 12:56:25 +0000 |
commit | 2019f8cb1c10c2705058e16bd2409bba00755fd4 (patch) | |
tree | 5a1dc266399919d0c453e4f7112cd51daa667851 | |
parent | 448b4eb117bf4d53f5cc6fde2490ccd1c084da11 (diff) | |
download | ruby-2019f8cb1c10c2705058e16bd2409bba00755fd4.tar.gz |
test/unit.rb: defer failures in verbose mode
* test/lib/test/unit.rb (Test::Unit::StatusLine#failed): defer
failed messages until the end in verbose mode, to get rid of
interleaving failures with progress messages.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54195 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | test/lib/test/unit.rb | 1 |
2 files changed, 7 insertions, 0 deletions
@@ -1,3 +1,9 @@ +Sat Mar 19 21:56:23 2016 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * test/lib/test/unit.rb (Test::Unit::StatusLine#failed): defer + failed messages until the end in verbose mode, to get rid of + interleaving failures with progress messages. + Sat Mar 19 21:53:35 2016 Nobuyoshi Nakada <nobu@ruby-lang.org> * numeric.c (fix_cmp): invert the result as the comarison is diff --git a/test/lib/test/unit.rb b/test/lib/test/unit.rb index 41c4996575..82985de59f 100644 --- a/test/lib/test/unit.rb +++ b/test/lib/test/unit.rb @@ -649,6 +649,7 @@ module Test def succeed; del_status_line; end def failed(s) + return if s and @options[:verbose] sep = "\n" @report_count ||= 0 report.each do |msg| |