From 13e5f1574000fc4f7e80a2166935e82fef3821b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A1bio=20C=2E=20Barrionuevo=20da=20Luz?= Date: Tue, 9 May 2017 17:23:03 -0300 Subject: [PATCH] fix issue #43 --- rosie.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rosie.py b/rosie.py index 21386a567..01b147315 100755 --- a/rosie.py +++ b/rosie.py @@ -34,7 +34,9 @@ def test(): loader = unittest.TestLoader() tests = loader.discover('rosie') testRunner = unittest.runner.TextTestRunner() - testRunner.run(tests) + result = testRunner.run(tests) + if not result.wasSuccessful(): + exit(1) commands = {'run': run, 'test': test}