mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-29 02:28:27 +00:00
validate:launcher:punittest: Raise an exception if a testsuite can't be loaded
This commit is contained in:
parent
d1319a1b6d
commit
78781de913
1 changed files with 1 additions and 2 deletions
|
@ -63,8 +63,7 @@ class PythonTestsManager(TestsManager):
|
||||||
for testsuite in testsuites:
|
for testsuite in testsuites:
|
||||||
for _tests in testsuite:
|
for _tests in testsuite:
|
||||||
if isinstance(_tests, unittest.loader._FailedTest):
|
if isinstance(_tests, unittest.loader._FailedTest):
|
||||||
print(_tests._exception)
|
raise(_tests._exception)
|
||||||
continue
|
|
||||||
for test in _tests:
|
for test in _tests:
|
||||||
self.add_test(PythonTest(
|
self.add_test(PythonTest(
|
||||||
sys.executable, test.id(),
|
sys.executable, test.id(),
|
||||||
|
|
Loading…
Reference in a new issue