!216 黄区告警修复回合蓝区主干

Merge pull request !216 from yaowenrui/OpenHarmony-5.0-Release
This commit is contained in:
openharmony_ci
2024-09-03 13:48:06 +00:00
committed by Gitee
+5 -3
View File
@@ -53,16 +53,18 @@ class Reporter:
def report_build_warning(self, filename, regex, details):
report = {}
if len(details) == 0 or filename is None:
return None
return report
if not os.path.exists(os.path.join(self.path, filename)):
return None
return report
line = details[0]
try:
warning = re.search(regex, line).group(0)
except:
except GetBuildWaringErr as e:
print('Except>>>', details)
return