From 6657567eba75841cc32c0c4fe22c985fa343d2de Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 10 May 2017 23:52:14 +0000 Subject: [PATCH] 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 --- test/lib/minitest/unit.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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