mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-22 00:06:36 +00:00
validate:launcher: Add a method to find tests in a TestManager
This commit is contained in:
parent
55dee0b8a6
commit
8382fddbe9
1 changed files with 4 additions and 0 deletions
|
@ -1075,6 +1075,10 @@ class TestsManager(Loggable):
|
|||
def list_tests(self):
|
||||
return sorted(list(self.tests), key=lambda x: x.classname)
|
||||
|
||||
def find_tests(self, classname):
|
||||
regex = re.compile(classname)
|
||||
return [test for test in self.list_tests() if regex.findall(test.classname)]
|
||||
|
||||
def add_expected_issues(self, expected_failures):
|
||||
expected_failures_re = {}
|
||||
for test_name_regex, failures in list(expected_failures.items()):
|
||||
|
|
Loading…
Reference in a new issue