mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-06 15:38:53 +00:00
validate:launcher: Handle testslist files even running several testsuites
Only if those testsuites do not use the same Tester as we currently can't know to what testsuite a test belongs.
This commit is contained in:
parent
187df093eb
commit
9190bcf62a
1 changed files with 2 additions and 4 deletions
|
@ -954,6 +954,7 @@ class TestsManager(Loggable):
|
||||||
def _check_blacklisted(self, test):
|
def _check_blacklisted(self, test):
|
||||||
for pattern in self.blacklisted_tests_patterns:
|
for pattern in self.blacklisted_tests_patterns:
|
||||||
if pattern.findall(test.classname):
|
if pattern.findall(test.classname):
|
||||||
|
self.info("%s is blacklisted by %s", test.classname, pattern)
|
||||||
return True
|
return True
|
||||||
|
|
||||||
return False
|
return False
|
||||||
|
@ -1234,15 +1235,12 @@ class _TestsLauncher(Loggable):
|
||||||
self._setup_testsuites()
|
self._setup_testsuites()
|
||||||
|
|
||||||
def _check_tester_has_other_testsuite(self, testsuite, tester):
|
def _check_tester_has_other_testsuite(self, testsuite, tester):
|
||||||
if len(testsuite.TEST_MANAGER) > 1:
|
|
||||||
return True
|
|
||||||
|
|
||||||
if tester.name != testsuite.TEST_MANAGER[0]:
|
if tester.name != testsuite.TEST_MANAGER[0]:
|
||||||
return True
|
return True
|
||||||
|
|
||||||
for t in self.options.testsuites:
|
for t in self.options.testsuites:
|
||||||
if t != testsuite:
|
if t != testsuite:
|
||||||
for other_testmanager in testsuite.TEST_MANAGER:
|
for other_testmanager in t.TEST_MANAGER:
|
||||||
if other_testmanager == tester.name:
|
if other_testmanager == tester.name:
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue