Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
spbro
OpenXG-RAN
Commits
72337b9c
Commit
72337b9c
authored
Mar 28, 2024
by
Guido Casati
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor fixes to CI python scripts
- enhanced CustomCommand logging - print ParseError
parent
cfaa182f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
ci-scripts/main.py
ci-scripts/main.py
+2
-2
ci-scripts/ran.py
ci-scripts/ran.py
+1
-1
No files found.
ci-scripts/main.py
View file @
72337b9c
...
...
@@ -579,8 +579,8 @@ elif re.match('^InitiateHtml$', mode, re.IGNORECASE):
if
(
os
.
path
.
isfile
(
xml_test_file
)):
try
:
xmlTree
=
ET
.
parse
(
xml_test_file
)
except
:
print
(
"Error while parsing file: "
+
xml_test_file
)
except
Exception
as
e
:
print
(
f"Error:
{
e
}
while parsing file:
{
xml_test_file
}
."
)
xmlRoot
=
xmlTree
.
getroot
()
HTML
.
htmlTabRefs
.
append
(
xmlRoot
.
findtext
(
'htmlTabRef'
,
default
=
'test-tab-'
+
str
(
count
)))
HTML
.
htmlTabNames
.
append
(
xmlRoot
.
findtext
(
'htmlTabName'
,
default
=
'test-tab-'
+
str
(
count
)))
...
...
ci-scripts/ran.py
View file @
72337b9c
...
...
@@ -264,7 +264,7 @@ class RANManagement():
cmd
=
cls_cmd
.
getConnection
(
self
.
node
)
ret
=
cmd
.
run
(
self
.
command
)
cmd
.
close
()
logging
.
debug
(
f"Cust
um command :
{
self
.
command
}
on node :
{
self
.
node
}
returnCode :
{
ret
.
returncode
}
"
)
logging
.
debug
(
f"Cust
omCommand:
{
self
.
command
}
on node:
{
self
.
node
}
-
{
'OK, command succeeded'
if
ret
.
returncode
==
0
else
f'Error, return code:
{
ret
.
returncode
}
'
}
"
)
status
=
'OK'
message
=
[]
if
ret
.
returncode
!=
0
and
not
self
.
command_fail
:
...
...
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