Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
oai
cn5g
oai-cn5g-smf
Commits
2f61fb4c
Commit
2f61fb4c
authored
Mar 24, 2021
by
Mohammed Ismail
Browse files
[CI] fix on the conf and size column of HTMLreport
Signed-off-by:
Mohammed Ismail
<
mohammed.ismail@openairinterface.org
>
parent
f226be9e
Changes
1
Hide whitespace changes
Inline
Side-by-side
ci-scripts/generateHtmlReport.py
View file @
2f61fb4c
...
...
@@ -774,7 +774,10 @@ class HtmlReport():
logFileName
=
'smf_'
+
variant
+
'_image_build.log'
if
os
.
path
.
isfile
(
cwd
+
'/archives/'
+
logFileName
):
section_start_pattern
=
'WORKDIR /openair-smf/etc'
section_end_pattern
=
'Successfully tagged oai-smf'
if
variant
==
'docker'
:
section_end_pattern
=
'Successfully tagged oai-smf'
else
:
section_end_pattern
=
'COMMIT oai-smf:'
section_status
=
False
status
=
False
with
open
(
cwd
+
'/archives/'
+
logFileName
,
'r'
)
as
logfile
:
...
...
@@ -845,7 +848,10 @@ class HtmlReport():
else
:
result
=
re
.
search
(
'oai-smf *develop'
,
line
)
if
result
is
not
None
:
result
=
re
.
search
(
'ago *([0-9A-Z]+)'
,
line
)
if
variant
==
'docker'
:
result
=
re
.
search
(
'ago *([0-9A-Z]+)'
,
line
)
else
:
result
=
re
.
search
(
'ago *([0-9]+ [A-Z]+)'
,
line
)
if
result
is
not
None
:
size
=
result
.
group
(
1
)
status
=
True
...
...
@@ -854,7 +860,7 @@ class HtmlReport():
cell_msg
=
' <td bgcolor="LimeGreen"><pre style="border:none; background-color:LimeGreen"><b>'
cell_msg
+=
'OK: '
+
size
+
'
\n
'
else
:
cell
_msg
=
' <td bgcolor="Tomato"><pre style="border:none; background-color:Tomato"><b>'
cell
OMMIT
oai
-
smf
:
cell_msg
+=
'KO:
\n
'
cell_msg
+=
'</b></pre></td>
\n
'
else
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment