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
40159bdf
Commit
40159bdf
authored
Oct 13, 2022
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Define cmd_prefix for Initialize_eNB
parent
058c6a4f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
ci-scripts/main.py
ci-scripts/main.py
+3
-0
ci-scripts/ran.py
ci-scripts/ran.py
+3
-6
No files found.
ci-scripts/main.py
View file @
40159bdf
...
@@ -187,6 +187,9 @@ def GetParametersFromXML(action):
...
@@ -187,6 +187,9 @@ def GetParametersFromXML(action):
else
:
else
:
RAN
.
air_interface
[
RAN
.
eNB_instance
]
=
'ocp-enb'
RAN
.
air_interface
[
RAN
.
eNB_instance
]
=
'ocp-enb'
cmd_prefix
=
test
.
findtext
(
'cmd_prefix'
)
if
cmd_prefix
is
not
None
:
RAN
.
cmd_prefix
=
cmd_prefix
elif
action
==
'Terminate_eNB'
:
elif
action
==
'Terminate_eNB'
:
eNB_instance
=
test
.
findtext
(
'eNB_instance'
)
eNB_instance
=
test
.
findtext
(
'eNB_instance'
)
if
(
eNB_instance
is
None
):
if
(
eNB_instance
is
None
):
...
...
ci-scripts/ran.py
View file @
40159bdf
...
@@ -99,6 +99,7 @@ class RANManagement():
...
@@ -99,6 +99,7 @@ class RANManagement():
self
.
USRPIPAddress
=
''
self
.
USRPIPAddress
=
''
#checkers from xml
#checkers from xml
self
.
ran_checkers
=
{}
self
.
ran_checkers
=
{}
self
.
cmd_prefix
=
''
# prefix before {lte,nr}-softmodem
#-----------------------------------------------------------
#-----------------------------------------------------------
...
@@ -472,11 +473,7 @@ class RANManagement():
...
@@ -472,11 +473,7 @@ class RANManagement():
gNB
=
False
gNB
=
False
else
:
else
:
gNB
=
True
gNB
=
True
if
((
self
.
USRPIPAddress
!=
''
)
and
(
gNB
==
True
)):
mySSH
.
command
(
f'echo "ulimit -c unlimited &&
{
self
.
cmd_prefix
}
./ran_build/build/
{
self
.
air_interface
[
self
.
eNB_instance
]
}
-O
{
lSourcePath
}
/
{
ci_full_config_file
}
{
extra_options
}
" > ./my-lte-softmodem-run
{
self
.
eNB_instance
}
.sh'
,
'\$'
,
5
)
mySSH
.
command
(
'echo '
+
lPassWord
+
' | echo "ulimit -c unlimited && sudo UHD_RFNOC_DIR=/usr/local/share/uhd/rfnoc ./ran_build/build/'
+
self
.
air_interface
[
self
.
eNB_instance
]
+
' -O '
+
lSourcePath
+
'/'
+
ci_full_config_file
+
extra_options
+
'" > ./my-lte-softmodem-run'
+
str
(
self
.
eNB_instance
)
+
'.sh'
,
'\$'
,
5
)
#otherwise the regular command is ok
else
:
mySSH
.
command
(
'echo "ulimit -c unlimited && catchsegv ./ran_build/build/'
+
self
.
air_interface
[
self
.
eNB_instance
]
+
' -O '
+
lSourcePath
+
'/'
+
ci_full_config_file
+
extra_options
+
'" > ./my-lte-softmodem-run'
+
str
(
self
.
eNB_instance
)
+
'.sh'
,
'\$'
,
5
)
mySSH
.
command
(
'chmod 775 ./my-lte-softmodem-run'
+
str
(
self
.
eNB_instance
)
+
'.sh'
,
'\$'
,
5
)
mySSH
.
command
(
'chmod 775 ./my-lte-softmodem-run'
+
str
(
self
.
eNB_instance
)
+
'.sh'
,
'\$'
,
5
)
mySSH
.
command
(
'echo '
+
lPassWord
+
' | sudo -S rm -Rf enb_'
+
self
.
testCase_id
+
'.log'
,
'\$'
,
5
)
mySSH
.
command
(
'echo '
+
lPassWord
+
' | sudo -S rm -Rf enb_'
+
self
.
testCase_id
+
'.log'
,
'\$'
,
5
)
...
@@ -567,7 +564,7 @@ class RANManagement():
...
@@ -567,7 +564,7 @@ class RANManagement():
mySSH
.
close
()
mySSH
.
close
()
HTML
.
CreateHtmlTestRow
(
self
.
air_interface
[
self
.
eNB_instance
]
+
' -O '
+
config_file
+
extra_options
,
'OK'
,
CONST
.
ALL_PROCESSES_OK
)
HTML
.
CreateHtmlTestRow
(
f'
{
self
.
cmd_prefix
}
{
self
.
air_interface
[
self
.
eNB_instance
]
}
-O
{
config_file
}
{
extra_options
}
'
,
'OK'
,
CONST
.
ALL_PROCESSES_OK
)
logging
.
debug
(
'
\u001B
[1m Initialize eNB/gNB/ocp-eNB Completed
\u001B
[0m'
)
logging
.
debug
(
'
\u001B
[1m Initialize eNB/gNB/ocp-eNB Completed
\u001B
[0m'
)
def
CheckeNBProcess
(
self
,
status_queue
):
def
CheckeNBProcess
(
self
,
status_queue
):
...
...
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