validate:launcher: Associate issues with the bug they come from
authorThibault Saunier <tsaunier@igalia.com>
Fri, 12 Apr 2019 14:13:15 +0000 (10:13 -0400)
committerThibault Saunier <tsaunier@igalia.com>
Fri, 12 Apr 2019 14:13:15 +0000 (10:13 -0400)
Making it simpler to follow when print the known issues

validate/launcher/baseclasses.py

index f4799046dcb3e49b91d1b77ed81b18c13da556eb..73bdb3f564178fc088b63d51e2305cbe47135b1d 100644 (file)
@@ -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))