summaryrefslogtreecommitdiffstats
path: root/scripts/generic/parse_build_log.py
diff options
context:
space:
mode:
authorKarim Abdelrahman <karim.abdelrahman@qt.io>2021-12-09 13:56:20 +0000
committerKarim Abdelrahman <karim.abdelrahman@qt.io>2022-01-20 11:14:44 +0000
commit8b824c34b26dd5e8d344b9490fb5e1716bba841c (patch)
tree0a1116314160aeb875d99e413d2c07502d99efc0 /scripts/generic/parse_build_log.py
parent833bd2cb856789e658e728183b06c0351147bbf8 (diff)
Show failed to install tests archive summary
There was no condition to show a summary for when installation of tests archive fail. The log will contain "No Sources for <IP address>" error. Pick-to: master Change-Id: Ic1e2db4cb32279145e651e05722a66449b8f14b8 Reviewed-by: Toni Saario <toni.saario@qt.io>
Diffstat (limited to 'scripts/generic/parse_build_log.py')
-rw-r--r--scripts/generic/parse_build_log.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/generic/parse_build_log.py b/scripts/generic/parse_build_log.py
index c1d9d459..642f2a08 100644
--- a/scripts/generic/parse_build_log.py
+++ b/scripts/generic/parse_build_log.py
@@ -54,6 +54,9 @@ end_test_crash_re = re.compile(r'\d+/\d+\sTest\s#\d+:.*\*\*\*Failed.*')
make_error_re = re.compile(r'make\[.*Error \d+$')
cmake_error_re = re.compile(r'CMake Error')
+# Failed to install tests archive
+nosource_re = re.compile(r"No sources for \"https?://(\d+\.\d+\.\d+\.\d+):(\d+)") # failed to install tests archive
+
def read_file(file_name):
"""
@@ -162,6 +165,8 @@ def parse(lines):
elif is_compile_error(line):
logging.debug("===> Matched compile error")
print_line_with_context(i, 10, lines)
+ elif nosource_re.match(line):
+ print_line_with_context(i, 10, lines)
if __name__ == '__main__':
if sys.version_info[0] != 3: