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
ef0f5c66
Commit
ef0f5c66
authored
May 17, 2024
by
Bipin Adhikari
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed minor error handling issues in from my last commit
parent
ea798204
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
8 deletions
+9
-8
ci-scripts/cls_oaicitest.py
ci-scripts/cls_oaicitest.py
+1
-1
ci-scripts/main.py
ci-scripts/main.py
+8
-7
No files found.
ci-scripts/cls_oaicitest.py
View file @
ef0f5c66
...
...
@@ -284,7 +284,7 @@ class OaiCiTest():
self
.
air_interface
=
''
self
.
ue_ids
=
[]
self
.
nodes
=
[]
self
.
svr_node
=
None
self
.
svr_node
=
''
self
.
svr_id
=
None
self
.
cmd_prefix
=
''
# prefix before {lte,nr}-uesoftmodem
...
...
ci-scripts/main.py
View file @
ef0f5c66
...
...
@@ -217,8 +217,8 @@ def GetParametersFromXML(action):
elif
action
==
'Initialize_UE'
or
action
==
'Attach_UE'
or
action
==
'Detach_UE'
or
action
==
'Terminate_UE'
or
action
==
'CheckStatusUE'
or
action
==
'DataEnable_UE'
or
action
==
'DataDisable_UE'
:
CiTestObj
.
ue_ids
=
test
.
findtext
(
'id'
).
split
(
' '
)
CiTestObj
.
nodes
=
test
.
findtext
(
'nodes'
).
split
(
' '
)
print
(
'-----------------------------------set citestobj.nodes as '
,
test
.
findtext
(
'nodes'
).
split
(
' '
),
len
(
test
.
findtext
(
'nodes'
).
split
(
' '
))
)
if
test
.
findtext
(
'nodes'
):
CiTestObj
.
nodes
=
test
.
findtext
(
'nodes'
).
split
(
' '
)
elif
action
==
'Build_OAI_UE'
:
CiTestObj
.
Build_OAI_UE_args
=
test
.
findtext
(
'Build_OAI_UE_args'
)
...
...
@@ -265,17 +265,18 @@ def GetParametersFromXML(action):
CiTestObj
.
ping_args
=
test
.
findtext
(
'ping_args'
)
CiTestObj
.
ping_packetloss_threshold
=
test
.
findtext
(
'ping_packetloss_threshold'
)
CiTestObj
.
ue_ids
=
test
.
findtext
(
'id'
).
split
(
' '
)
CiTestObj
.
nodes
=
test
.
findtext
(
'nodes'
).
split
(
' '
)
print
(
'-----------------------------------set citestonj.nodes as '
,
test
.
findtext
(
'nodes'
).
split
(
' '
),
len
(
test
.
findtext
(
'nodes'
).
split
(
' '
))
)
if
test
.
findtext
(
'nodes'
):
CiTestObj
.
nodes
=
test
.
findtext
(
'nodes'
).
split
(
' '
)
ping_rttavg_threshold
=
test
.
findtext
(
'ping_rttavg_threshold'
)
or
''
elif
action
==
'Iperf'
:
CiTestObj
.
iperf_args
=
test
.
findtext
(
'iperf_args'
)
CiTestObj
.
ue_ids
=
test
.
findtext
(
'id'
).
split
(
' '
)
CiTestObj
.
svr_id
=
test
.
findtext
(
'svr_id'
)
or
None
CiTestObj
.
nodes
=
test
.
findtext
(
'nodes'
).
split
(
' '
)
CiTestObj
.
svr_node
=
test
.
findtext
(
'svr_node'
)
or
None
print
(
'-----------------------------------set citestonj.nodes as '
,
test
.
findtext
(
'nodes'
).
split
(
' '
),
len
(
test
.
findtext
(
'nodes'
).
split
(
' '
)))
if
test
.
findtext
(
'nodes'
):
CiTestObj
.
nodes
=
test
.
findtext
(
'nodes'
).
split
(
' '
)
if
test
.
findtext
(
'svr_node'
):
CiTestObj
.
svr_node
=
test
.
findtext
(
'svr_node'
)
CiTestObj
.
iperf_packetloss_threshold
=
test
.
findtext
(
'iperf_packetloss_threshold'
)
CiTestObj
.
iperf_bitrate_threshold
=
test
.
findtext
(
'iperf_bitrate_threshold'
)
or
'90'
CiTestObj
.
iperf_profile
=
test
.
findtext
(
'iperf_profile'
)
or
'balanced'
...
...
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