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
e969ddb8
Commit
e969ddb8
authored
Sep 23, 2024
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
IdleSleep(): no need for class members
parent
71807db4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
11 deletions
+7
-11
ci-scripts/cls_oaicitest.py
ci-scripts/cls_oaicitest.py
+5
-5
ci-scripts/main.py
ci-scripts/main.py
+2
-6
No files found.
ci-scripts/cls_oaicitest.py
View file @
e969ddb8
...
...
@@ -239,6 +239,11 @@ def Custom_Command(HTML, node, command, command_fail):
HTML
.
CreateHtmlTestRowQueue
(
command
,
status
,
message
)
return
status
==
'OK'
or
status
==
'Warning'
def
IdleSleep
(
HTML
,
idle_sleep_time
):
time
.
sleep
(
idle_sleep_time
)
HTML
.
CreateHtmlTestRow
(
f"
{
idle_sleep_time
}
sec"
,
'OK'
,
CONST
.
ALL_PROCESSES_OK
)
return
True
#-----------------------------------------------------------
# OaiCiTest Class Definition
#-----------------------------------------------------------
...
...
@@ -263,7 +268,6 @@ class OaiCiTest():
self
.
iperf_profile
=
''
self
.
iperf_options
=
''
self
.
iperf_tcp_rate_target
=
''
self
.
idle_sleep_time
=
0
self
.
finalStatus
=
False
self
.
UEIPAddress
=
''
self
.
UEUserName
=
''
...
...
@@ -915,10 +919,6 @@ class OaiCiTest():
CONTAINERS
.
UndeployGenObject
(
HTML
,
RAN
,
self
)
RAN
.
prematureExit
=
True
def
IdleSleep
(
self
,
HTML
):
time
.
sleep
(
self
.
idle_sleep_time
)
HTML
.
CreateHtmlTestRow
(
str
(
self
.
idle_sleep_time
)
+
' sec'
,
'OK'
,
CONST
.
ALL_PROCESSES_OK
)
def
LogCollectBuild
(
self
,
RAN
):
# Some pipelines are using "none" IP / Credentials
# In that case, just forget about it
...
...
ci-scripts/main.py
View file @
e969ddb8
...
...
@@ -298,12 +298,8 @@ def ExecuteActionWithParam(action):
CiTestObj
.
Iperf2_Unidir
(
HTML
,
RAN
,
EPC
,
CONTAINERS
)
elif
action
==
'IdleSleep'
:
string_field
=
test
.
findtext
(
'idle_sleep_time_in_sec'
)
if
(
string_field
is
None
):
CiTestObj
.
idle_sleep_time
=
5
else
:
CiTestObj
.
idle_sleep_time
=
int
(
string_field
)
CiTestObj
.
IdleSleep
(
HTML
)
st
=
test
.
findtext
(
'idle_sleep_time_in_sec'
)
or
"5"
cls_oaicitest
.
IdleSleep
(
HTML
,
int
(
st
))
elif
action
==
'Build_PhySim'
:
ldpc
.
buildargs
=
test
.
findtext
(
'physim_build_args'
)
...
...
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