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
Michael Black
OpenXG-RAN
Commits
5a113cdb
Commit
5a113cdb
authored
Feb 15, 2023
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove useless code
parent
df209625
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
65 deletions
+0
-65
ci-scripts/cls_oaicitest.py
ci-scripts/cls_oaicitest.py
+0
-58
ci-scripts/main.py
ci-scripts/main.py
+0
-7
No files found.
ci-scripts/cls_oaicitest.py
View file @
5a113cdb
...
@@ -652,56 +652,6 @@ class OaiCiTest():
...
@@ -652,56 +652,6 @@ class OaiCiTest():
job
.
join
()
job
.
join
()
HTML
.
CreateHtmlTestRow
(
'N/A'
,
'OK'
,
CONST
.
ALL_PROCESSES_OK
)
HTML
.
CreateHtmlTestRow
(
'N/A'
,
'OK'
,
CONST
.
ALL_PROCESSES_OK
)
def
GetAllUEDevices
(
self
,
terminate_ue_flag
):
if
self
.
ADBIPAddress
==
''
or
self
.
ADBUserName
==
''
or
self
.
ADBPassword
==
''
:
HELP
.
GenericHelp
(
CONST
.
Version
)
sys
.
exit
(
'Insufficient Parameter'
)
SSH
=
sshconnection
.
SSHConnection
()
SSH
.
open
(
self
.
ADBIPAddress
,
self
.
ADBUserName
,
self
.
ADBPassword
)
if
self
.
ADBCentralized
:
SSH
.
command
(
'adb devices'
,
'\$'
,
15
)
self
.
UEDevices
=
re
.
findall
(
'
\r\n
([A-Za-z0-9]+)
\t
device'
,
SSH
.
getBefore
())
#report number and id of devices found
msg
=
"UEDevices found by GetAllUEDevices : "
+
" "
.
join
(
self
.
UEDevices
)
logging
.
debug
(
msg
)
SSH
.
close
()
else
:
if
(
os
.
path
.
isfile
(
'./phones_list.txt'
)):
os
.
remove
(
'./phones_list.txt'
)
SSH
.
command
(
'ls /etc/*/phones*.txt'
,
'\$'
,
5
)
result
=
re
.
search
(
'/etc/ci/phones_list.txt'
,
SSH
.
getBefore
())
SSH
.
close
()
if
(
result
is
not
None
)
and
(
len
(
self
.
UEDevices
)
==
0
):
SSH
.
copyin
(
self
.
ADBIPAddress
,
self
.
ADBUserName
,
self
.
ADBPassword
,
'/etc/ci/phones_list.txt'
,
'.'
)
if
(
os
.
path
.
isfile
(
'./phones_list.txt'
)):
phone_list_file
=
open
(
'./phones_list.txt'
,
'r'
)
for
line
in
phone_list_file
.
readlines
():
line
=
line
.
strip
()
result
=
re
.
search
(
'^#'
,
line
)
if
result
is
not
None
:
continue
comma_split
=
line
.
split
(
","
)
self
.
UEDevices
.
append
(
comma_split
[
0
])
self
.
UEDevicesRemoteServer
.
append
(
comma_split
[
1
])
self
.
UEDevicesRemoteUser
.
append
(
comma_split
[
2
])
self
.
UEDevicesOffCmd
.
append
(
comma_split
[
3
])
self
.
UEDevicesOnCmd
.
append
(
comma_split
[
4
])
self
.
UEDevicesRebootCmd
.
append
(
comma_split
[
5
])
phone_list_file
.
close
()
# better handling of the case when no UE detected
# Sys-exit is now dealt by the calling function
if
terminate_ue_flag
==
True
:
if
len
(
self
.
UEDevices
)
==
0
:
logging
.
debug
(
'
\u001B
[1;37;41m UE Not Found!
\u001B
[0m'
)
return
False
if
len
(
self
.
UEDevicesStatus
)
==
0
:
cnt
=
0
while
cnt
<
len
(
self
.
UEDevices
):
self
.
UEDevicesStatus
.
append
(
CONST
.
UE_STATUS_DETACHED
)
cnt
+=
1
return
True
def
CheckUEStatus_common
(
self
,
lock
,
device_id
,
statusQueue
,
idx
):
def
CheckUEStatus_common
(
self
,
lock
,
device_id
,
statusQueue
,
idx
):
try
:
try
:
SSH
=
sshconnection
.
SSHConnection
()
SSH
=
sshconnection
.
SSHConnection
()
...
@@ -2801,14 +2751,6 @@ class OaiCiTest():
...
@@ -2801,14 +2751,6 @@ class OaiCiTest():
CONTAINERS
.
eNB_instance
=
instance
CONTAINERS
.
eNB_instance
=
instance
CONTAINERS
.
UndeployObject
(
HTML
,
RAN
)
CONTAINERS
.
UndeployObject
(
HTML
,
RAN
)
RAN
.
prematureExit
=
True
RAN
.
prematureExit
=
True
def
GetAllUEDevices
(
self
,
terminate_ue_flag
):
SSH
=
sshconnection
.
SSHConnection
()
SSH
.
open
(
self
.
ADBIPAddress
,
self
.
ADBUserName
,
self
.
ADBPassword
)
SSH
.
command
(
'adb devices'
,
'\$'
,
15
)
self
.
UEDevices
=
re
.
findall
(
'
\r\n
([A-Za-z0-9]+)
\t
device'
,
SSH
.
getBefore
())
msg
=
"UEDevices found by GetAllUEDevices : "
+
" "
.
join
(
self
.
UEDevices
)
logging
.
debug
(
msg
)
SSH
.
close
()
def
IdleSleep
(
self
,
HTML
):
def
IdleSleep
(
self
,
HTML
):
time
.
sleep
(
self
.
idle_sleep_time
)
time
.
sleep
(
self
.
idle_sleep_time
)
...
...
ci-scripts/main.py
View file @
5a113cdb
...
@@ -789,13 +789,6 @@ elif re.match('^TesteNB$', mode, re.IGNORECASE) or re.match('^TestUE$', mode, re
...
@@ -789,13 +789,6 @@ elif re.match('^TesteNB$', mode, re.IGNORECASE) or re.match('^TestUE$', mode, re
signal
.
signal
(
signal
.
SIGUSR1
,
receive_signal
)
signal
.
signal
(
signal
.
SIGUSR1
,
receive_signal
)
if
(
CiTestObj
.
ADBIPAddress
!=
'none'
)
and
(
CiTestObj
.
ADBIPAddress
!=
'modules'
):
terminate_ue_flag
=
False
CiTestObj
.
GetAllUEDevices
(
terminate_ue_flag
)
elif
(
CiTestObj
.
ADBIPAddress
==
'modules'
):
CiTestObj
.
UEDevices
.
append
(
'COTS-Module'
)
else
:
CiTestObj
.
UEDevices
.
append
(
'OAI-UE'
)
HTML
.
CreateHtmlTabHeader
()
HTML
.
CreateHtmlTabHeader
()
# On CI bench w/ containers, we need to validate if IP routes are set
# On CI bench w/ containers, we need to validate if IP routes are set
...
...
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