Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG UE
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
OpenXG
OpenXG UE
Commits
4b18a2e0
Commit
4b18a2e0
authored
Sep 08, 2020
by
Remi Hardy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed eNB auto termination ; cleaned cots_ue_airplane action (no longer needed)
parent
f492ef5e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
15 deletions
+13
-15
ci-scripts/main.py
ci-scripts/main.py
+5
-8
ci-scripts/ran.py
ci-scripts/ran.py
+8
-6
ci-scripts/xml_class_list.yml
ci-scripts/xml_class_list.yml
+0
-1
No files found.
ci-scripts/main.py
View file @
4b18a2e0
...
...
@@ -2847,8 +2847,11 @@ class OaiCiTest():
self
.
desc
=
'Automatic Termination of eNB'
HTML
.
desc
=
'Automatic Termination of eNB'
self
.
ShowTestID
()
RAN
.
eNB_instance
=
0
RAN
.
TerminateeNB
()
#Terminate all instances on all servers, eNB, eNB1, eNB2
#RAN.eNB_instance=0
RAN
.
TerminateeNB
(
0
)
RAN
.
TerminateeNB
(
1
)
RAN
.
TermintateeNB
(
2
)
if
RAN
.
flexranCtrlInstalled
and
RAN
.
flexranCtrlStarted
:
self
.
testCase_id
=
'AUTO-KILL-flexran-ctl'
HTML
.
testCase_id
=
self
.
testCase_id
...
...
@@ -3332,9 +3335,6 @@ def GetParametersFromXML(action):
if
action
==
'Run_PhySim'
:
ldpc
.
runargs
=
test
.
findtext
(
'physim_run_args'
)
if
action
==
'COTS_UE_Airplane'
:
COTS_UE
.
cots_id
=
test
.
findtext
(
'cots_id'
)
COTS_UE
.
cots_run_mode
=
test
.
findtext
(
'cots_run_mode'
)
#check if given test is in list
#it is in list if one of the strings in 'list' is at the beginning of 'test'
...
...
@@ -3734,9 +3734,6 @@ elif re.match('^TesteNB$', mode, re.IGNORECASE) or re.match('^TestUE$', mode, re
if
ldpc
.
exitStatus
==
1
:
sys
.
exit
()
elif
action
==
'Run_PhySim'
:
HTML
=
ldpc
.
Run_PhySim
(
HTML
,
CONST
,
id
)
elif
action
==
'COTS_UE_Airplane'
:
#cots id and cots run mode were read from xml test file
COTS_UE
.
Set_Airplane
(
COTS_UE
.
cots_id
,
COTS_UE
.
cots_run_mode
)
else
:
sys
.
exit
(
'Invalid class (action) from xml'
)
CiTestObj
.
FailReportCnt
+=
1
...
...
ci-scripts/ran.py
View file @
4b18a2e0
...
...
@@ -546,25 +546,27 @@ class RANManagement():
except
:
os
.
kill
(
os
.
getppid
(),
signal
.
SIGUSR1
)
def
TerminateeNB
(
self
):
if
self
.
eNB_serverId
==
'0'
:
def
TerminateeNB
(
self
,
eNB_serverId
):
if
eNB_serverId
==
'0'
:
lIpAddr
=
self
.
eNBIPAddress
lUserName
=
self
.
eNBUserName
lPassWord
=
self
.
eNBPassword
lSourcePath
=
self
.
eNBSourceCodePath
elif
self
.
eNB_serverId
==
'1'
:
elif
eNB_serverId
==
'1'
:
lIpAddr
=
self
.
eNB1IPAddress
lUserName
=
self
.
eNB1UserName
lPassWord
=
self
.
eNB1Password
lSourcePath
=
self
.
eNB1SourceCodePath
elif
self
.
eNB_serverId
==
'2'
:
elif
eNB_serverId
==
'2'
:
lIpAddr
=
self
.
eNB2IPAddress
lUserName
=
self
.
eNB2UserName
lPassWord
=
self
.
eNB2Password
lSourcePath
=
self
.
eNB2SourceCodePath
if
lIpAddr
==
''
or
lUserName
==
''
or
lPassWord
==
''
or
lSourcePath
==
''
:
HELP
.
GenericHelp
(
CONST
.
Version
)
sys
.
exit
(
'Insufficient Parameter'
)
#HELP.GenericHelp(CONST.Version)
#sys.exit('Insufficient Parameter')
logging
.
debug
(
'ATTENTION Cannot clean eNB_serverID='
+
eNB_serverID
+
' '
+
'@'
+
lIpAddr
+
' path:'
+
lSourcePath
+
' : No parameters'
)
return
mySSH
=
SSH
.
SSHConnection
()
mySSH
.
open
(
lIpAddr
,
lUserName
,
lPassWord
)
mySSH
.
command
(
'cd '
+
lSourcePath
+
'/cmake_targets'
,
'\$'
,
5
)
...
...
ci-scripts/xml_class_list.yml
View file @
4b18a2e0
-
COTS_UE_Airplane
-
Build_PhySim
-
Run_PhySim
-
Build_eNB
...
...
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