validate:launcher:punittest: Raise an exception if a testsuite can't be loaded

This commit is contained in:
Thibault Saunier 2019-01-30 15:57:13 -03:00
parent d1319a1b6d
commit 78781de913

View file

@ -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(),