diff options
Diffstat (limited to 'lib/test')
-rw-r--r-- | lib/test/unit.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/test/unit.rb b/lib/test/unit.rb index f4202c5294..6c12f85c62 100644 --- a/lib/test/unit.rb +++ b/lib/test/unit.rb @@ -175,7 +175,8 @@ at_exit { runners = { '--console' => proc do |suite| require 'test/unit/ui/console/testrunner' - Test::Unit::UI::Console::TestRunner.run(suite) + passed = Test::Unit::UI::Console::TestRunner.run(suite).passed? + exit(passed ? 0 : 1) end, '--gtk' => proc do |suite| require 'test/unit/ui/gtk/testrunner' |