Commit eba6b653 authored by Raphael Defosseux's avatar Raphael Defosseux Committed by kharade

fix(ci): HTML report is not displaying the correct image size

Signed-off-by: default avatarRaphael Defosseux <raphael.defosseux@eurecom.fr>
parent 77a9e058
......@@ -513,7 +513,7 @@ class HtmlReport():
logFileName = 'upf_' + variant + '_image_build.log'
if os.path.isfile(cwd + '/archives/' + logFileName):
section_start_pattern = '[aA][sS] oai-upf-vpp$'
section_end_pattern = 'WORKDIR /openair-upf/etc'
section_end_pattern = 'RUN ldconfig'
section_status = False
status = False
with open(cwd + '/archives/' + logFileName, 'r') as logfile:
......@@ -558,7 +558,7 @@ class HtmlReport():
for variant in variants:
logFileName = 'upf_' + variant + '_image_build.log'
if os.path.isfile(cwd + '/archives/' + logFileName):
section_start_pattern = 'WORKDIR /openair-upf/etc'
section_start_pattern = 'RUN groupadd vpp'
if variant == 'docker':
section_end_pattern = 'Successfully tagged oai-upf-vpp:'
else:
......@@ -629,9 +629,9 @@ class HtmlReport():
if section_status:
if nfType == 'UPF-VPP':
if self.git_pull_request:
result = re.search('oai-upf-vpp *ci-tmp', line)
result = re.search('oai-upf-vpp *ci-tmp ', line)
else:
result = re.search('oai-upf-vpp *develop', line)
result = re.search('oai-upf-vpp *develop ', line)
if result is not None:
if variant == 'docker':
result = re.search('ago *([0-9A-Z\.]+)', line)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment