diff options
Diffstat (limited to 'buildbot_gentoo_ci/steps/logs.py')
-rw-r--r-- | buildbot_gentoo_ci/steps/logs.py | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/buildbot_gentoo_ci/steps/logs.py b/buildbot_gentoo_ci/steps/logs.py index a261dac..64bd3e7 100644 --- a/buildbot_gentoo_ci/steps/logs.py +++ b/buildbot_gentoo_ci/steps/logs.py @@ -216,6 +216,14 @@ class MakeIssue(BuildStep): word_list.append(word) return word_list + def title_line_rules(self, text_issue_list): + for text_issue in text_issue_list: + # patch fail + if re.search(' \* patch .* failed with /', text_issue): + return text_issue.replace('*', '').strip() + title_line = text_issue_list[0].replace('*', '').strip() + return title_line + def ClassifyIssue(self): # get the title for the issue text_issue_list = [] @@ -228,7 +236,9 @@ class MakeIssue(BuildStep): # add the issue error self.error_dict['cpv'] = self.getProperty('log_cpv') if text_issue_list != []: - title_line = text_issue_list[0].replace('*', '').strip() + print(f"text_issue_list: {text_issue_list}") + title_line = self.title_line_rules(text_issue_list) + print(f"title_line: {title_line}") self.error_dict['title_issue'] = title_line self.error_dict['title_issue_nice'] = self.getNiceErrorLine(title_line) self.error_dict['title_found'] = True |