diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-04-23 14:51:08 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-04-23 14:51:08 +0000 |
commit | 93955c75609f30e372e36057fec58bb5162cbcbd (patch) | |
tree | 85589b95ef0e59a46256f8ebaa3440a009a51ec2 /test/lib | |
parent | 8284de591f076a1b7d099cacfecf8a9b4fe5df90 (diff) | |
download | ruby-93955c75609f30e372e36057fec58bb5162cbcbd.tar.gz |
Add diagnostic reports section header [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58459 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/lib')
-rw-r--r-- | test/lib/test/unit/assertions.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/lib/test/unit/assertions.rb b/test/lib/test/unit/assertions.rb index 94248d1139..4b331da33d 100644 --- a/test/lib/test/unit/assertions.rb +++ b/test/lib/test/unit/assertions.rb @@ -552,11 +552,11 @@ EOT full_message << " exit #{status.exitstatus}" if status.exited? full_message << " killed by #{sigdesc}" if sigdesc if out and !out.empty? - full_message << "\n#{out.b.gsub(/^/, '| ')}" - full_message << "\n" if /\n\z/ !~ full_message + full_message << "\n" << out.b.gsub(/^/, '| ') + full_message.sub!(/(?<!\n)\z/, "\n") end if log - full_message << "\n#{log.b.gsub(/^/, '| ')}" + full_message << "Diagnostic reports:\n" << log.b.gsub(/^/, '| ') end full_message end |