提交 e76ba1f8 编写于 作者: Y yaoxiaoyu_903c 提交者: yaoxiaoyu

print error message when ninja:error

Signed-off-by: Nyaoxiaoyu <yaoxiaoyu1@huawei.com>
Change-Id: Iaddbfce8eab46325fe9462265b9fb55e6baaa38d
上级 e99659f1
......@@ -127,6 +127,11 @@ def get_failed_log(log_path):
if 'FAILED:' in log:
hb_error(log)
failed_pattern = re.compile(r'(ninja: error:.*?)\n', re.DOTALL)
failed_log = failed_pattern.findall(data)
for log in failed_log:
hb_error(log)
error_log = os.path.join(os.path.dirname(log_path), 'error.log')
if os.path.isfile(error_log):
with open(error_log, 'rt', encoding='utf-8') as log_file:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册