From 78781de91302103a5b711e7a0e20cddb2b3848a0 Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Wed, 30 Jan 2019 15:57:13 -0300 Subject: [PATCH] validate:launcher:punittest: Raise an exception if a testsuite can't be loaded --- validate/launcher/apps/pyunittest.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/validate/launcher/apps/pyunittest.py b/validate/launcher/apps/pyunittest.py index 08aef10..b97f6b5 100644 --- a/validate/launcher/apps/pyunittest.py +++ b/validate/launcher/apps/pyunittest.py @@ -63,8 +63,7 @@ class PythonTestsManager(TestsManager): for testsuite in testsuites: for _tests in testsuite: if isinstance(_tests, unittest.loader._FailedTest): - print(_tests._exception) - continue + raise(_tests._exception) for test in _tests: self.add_test(PythonTest( sys.executable, test.id(), -- 2.7.4