mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-29 19:50:40 +00:00
validate:launcher: Associate issues with the bug they come from
Making it simpler to follow when print the known issues
This commit is contained in:
parent
81f198f812
commit
d709cb54a9
1 changed files with 5 additions and 0 deletions
|
@ -1337,6 +1337,8 @@ class TestsManager(Loggable):
|
|||
test.allow_flakiness = True
|
||||
self.debug("%s allow flakyness" % (test.classname))
|
||||
else:
|
||||
for issue in failure_def['issues']:
|
||||
issue['bug'] = bugid
|
||||
test.expected_issues.extend(failure_def['issues'])
|
||||
self.debug("%s added expected issues from %s" % (
|
||||
test.classname, bugid))
|
||||
|
@ -1349,12 +1351,15 @@ class TestsManager(Loggable):
|
|||
test.classname = self.loading_testsuite + '.' + test.classname
|
||||
|
||||
for bugid, failure_def in list(self.expected_issues.items()):
|
||||
failure_def['bug'] = bugid
|
||||
for regex in failure_def['tests']:
|
||||
if regex.findall(test.classname):
|
||||
if failure_def.get('allow_flakiness'):
|
||||
test.allow_flakiness = True
|
||||
self.debug("%s allow flakyness" % (test.classname))
|
||||
else:
|
||||
for issue in failure_def['issues']:
|
||||
issue['bug'] = bugid
|
||||
test.expected_issues.extend(failure_def['issues'])
|
||||
self.debug("%s added expected issues from %s" % (
|
||||
test.classname, bugid))
|
||||
|
|
Loading…
Reference in a new issue