mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-01 21:18:52 +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
|
test.allow_flakiness = True
|
||||||
self.debug("%s allow flakyness" % (test.classname))
|
self.debug("%s allow flakyness" % (test.classname))
|
||||||
else:
|
else:
|
||||||
|
for issue in failure_def['issues']:
|
||||||
|
issue['bug'] = bugid
|
||||||
test.expected_issues.extend(failure_def['issues'])
|
test.expected_issues.extend(failure_def['issues'])
|
||||||
self.debug("%s added expected issues from %s" % (
|
self.debug("%s added expected issues from %s" % (
|
||||||
test.classname, bugid))
|
test.classname, bugid))
|
||||||
|
@ -1349,12 +1351,15 @@ class TestsManager(Loggable):
|
||||||
test.classname = self.loading_testsuite + '.' + test.classname
|
test.classname = self.loading_testsuite + '.' + test.classname
|
||||||
|
|
||||||
for bugid, failure_def in list(self.expected_issues.items()):
|
for bugid, failure_def in list(self.expected_issues.items()):
|
||||||
|
failure_def['bug'] = bugid
|
||||||
for regex in failure_def['tests']:
|
for regex in failure_def['tests']:
|
||||||
if regex.findall(test.classname):
|
if regex.findall(test.classname):
|
||||||
if failure_def.get('allow_flakiness'):
|
if failure_def.get('allow_flakiness'):
|
||||||
test.allow_flakiness = True
|
test.allow_flakiness = True
|
||||||
self.debug("%s allow flakyness" % (test.classname))
|
self.debug("%s allow flakyness" % (test.classname))
|
||||||
else:
|
else:
|
||||||
|
for issue in failure_def['issues']:
|
||||||
|
issue['bug'] = bugid
|
||||||
test.expected_issues.extend(failure_def['issues'])
|
test.expected_issues.extend(failure_def['issues'])
|
||||||
self.debug("%s added expected issues from %s" % (
|
self.debug("%s added expected issues from %s" % (
|
||||||
test.classname, bugid))
|
test.classname, bugid))
|
||||||
|
|
Loading…
Reference in a new issue