diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-05-10 23:52:14 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-05-10 23:52:14 +0000 |
commit | 6657567eba75841cc32c0c4fe22c985fa343d2de (patch) | |
tree | d474622c159c200a4846f85413bc859ef741e82f /test/lib/minitest/unit.rb | |
parent | c47e21315c67e23933e77e73fdb209ea37775996 (diff) | |
download | ruby-6657567eba75841cc32c0c4fe22c985fa343d2de.tar.gz |
fix up r57167
* test/lib/minitest/unit.rb (MiniTest::Unit#_run_anything): stop
if any errors or failures.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58661 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/lib/minitest/unit.rb')
-rw-r--r-- | test/lib/minitest/unit.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/lib/minitest/unit.rb b/test/lib/minitest/unit.rb index b084318bb1..b7dd183d20 100644 --- a/test/lib/minitest/unit.rb +++ b/test/lib/minitest/unit.rb @@ -900,7 +900,8 @@ module MiniTest puts "Finished%s %ss in %.6fs, %.4f tests/s, %.4f assertions/s.\n" % [(@repeat_count ? "(#{count}/#{@repeat_count}) " : ""), type, t, @test_count.fdiv(t), @assertion_count.fdiv(t)] - end while @repeat_count && count < @repeat_count && report.empty? + end while @repeat_count && count < @repeat_count && + report.empty? && failures.zero? && errors.zero? output.sync = old_sync if sync |