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
wangjie
OpenXG-RAN
Commits
b99c6a89
Commit
b99c6a89
authored
Jul 05, 2019
by
Raphael Defosseux
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CI: little bug fixes
Signed-off-by:
Raphael Defosseux
<
raphael.defosseux@eurecom.fr
>
parent
a03ef2bf
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
8 deletions
+17
-8
ci-scripts/main.py
ci-scripts/main.py
+14
-5
ci-scripts/xml_files/enb_usrp210_band7_test_05mhz_tm1.xml
ci-scripts/xml_files/enb_usrp210_band7_test_05mhz_tm1.xml
+3
-3
No files found.
ci-scripts/main.py
View file @
b99c6a89
...
...
@@ -543,11 +543,11 @@ class SSHConnection():
sys
.
exit
(
'Insufficient Parameter'
)
ci_full_config_file
=
config_path
+
'/ci-'
+
config_file
rruCheck
=
False
result
=
re
.
search
(
'rru|du'
,
str
(
config_file
))
result
=
re
.
search
(
'rru|du
.band
'
,
str
(
config_file
))
if
result
is
not
None
:
rruCheck
=
True
# do not reset board twice in IF4.5 case
result
=
re
.
search
(
'rru|enb|du'
,
str
(
config_file
))
result
=
re
.
search
(
'rru|enb|du
.band
'
,
str
(
config_file
))
if
result
is
not
None
:
self
.
command
(
'echo '
+
self
.
eNBPassword
+
' | sudo -S uhd_find_devices'
,
'\$'
,
10
)
result
=
re
.
search
(
'type: b200'
,
str
(
self
.
ssh
.
before
))
...
...
@@ -571,11 +571,12 @@ class SSHConnection():
self
.
command
(
'chmod 775 ./my-lte-softmodem-run'
+
str
(
self
.
eNB_instance
)
+
'.sh'
,
'\$'
,
5
)
self
.
command
(
'echo '
+
self
.
eNBPassword
+
' | sudo -S rm -Rf enb_'
+
self
.
testCase_id
+
'.log'
,
'\$'
,
5
)
self
.
command
(
'echo '
+
self
.
eNBPassword
+
' | sudo -S -E daemon --inherit --unsafe --name=enb'
+
str
(
self
.
eNB_instance
)
+
'_daemon --chdir='
+
self
.
eNBSourceCodePath
+
'/cmake_targets -o '
+
self
.
eNBSourceCodePath
+
'/cmake_targets/enb_'
+
self
.
testCase_id
+
'.log ./my-lte-softmodem-run'
+
str
(
self
.
eNB_instance
)
+
'.sh'
,
'\$'
,
5
)
if
not
rruCheck
:
result
=
re
.
search
(
'rcc|enb|cu.band'
,
str
(
config_file
))
if
result
is
not
None
:
self
.
eNBLogFile
=
'enb_'
+
self
.
testCase_id
+
'.log'
if
extra_options
!=
''
:
self
.
eNBOptions
=
extra_options
result
=
re
.
search
(
'rru|du'
,
str
(
config_file
))
result
=
re
.
search
(
'rru|du
.band
'
,
str
(
config_file
))
if
result
is
not
None
:
self
.
rruLogFile
=
'enb_'
+
self
.
testCase_id
+
'.log'
time
.
sleep
(
6
)
...
...
@@ -2527,6 +2528,7 @@ class SSHConnection():
pdcpFailure
=
0
ulschFailure
=
0
cdrxActivationMessageCount
=
0
dropNotEnoughRBs
=
0
self
.
htmleNBFailureMsg
=
''
for
line
in
enb_log_file
.
readlines
():
if
self
.
rruOptions
!=
''
:
...
...
@@ -2599,6 +2601,9 @@ class SSHConnection():
result
=
re
.
search
(
'Canceled RA procedure for UE rnti'
,
str
(
line
))
if
result
is
not
None
:
rachCanceledProcedure
+=
1
result
=
re
.
search
(
'dropping, not enough RBs'
,
str
(
line
))
if
result
is
not
None
:
dropNotEnoughRBs
+=
1
enb_log_file
.
close
()
logging
.
debug
(
' File analysis completed'
)
if
uciStatMsgCount
>
0
:
...
...
@@ -2613,6 +2618,10 @@ class SSHConnection():
statMsg
=
'eNB showed '
+
str
(
ulschFailure
)
+
' "ULSCH in error in round" message(s)'
logging
.
debug
(
'
\u001B
[1;30;43m '
+
statMsg
+
'
\u001B
[0m'
)
self
.
htmleNBFailureMsg
+=
statMsg
+
'
\n
'
if
dropNotEnoughRBs
>
0
:
statMsg
=
'eNB showed '
+
str
(
dropNotEnoughRBs
)
+
' "dropping, not enough RBs" message(s)'
logging
.
debug
(
'
\u001B
[1;30;43m '
+
statMsg
+
'
\u001B
[0m'
)
self
.
htmleNBFailureMsg
+=
statMsg
+
'
\n
'
if
rrcSetupComplete
>
0
:
rrcMsg
=
'eNB completed '
+
str
(
rrcSetupComplete
)
+
' RRC Connection Setup(s)'
logging
.
debug
(
'
\u001B
[1;30;43m '
+
rrcMsg
+
'
\u001B
[0m'
)
...
...
@@ -2896,7 +2905,7 @@ class SSHConnection():
self
.
htmleNBFailureMsg
=
'Could not copy eNB logfile to analyze it!'
self
.
CreateHtmlTestRow
(
'N/A'
,
'KO'
,
ENB_PROCESS_NOLOGFILE_TO_ANALYZE
)
return
logging
.
debug
(
'
\u001B
[1m Analyzing eNB logfile
\u001B
[0m
'
)
logging
.
debug
(
'
\u001B
[1m Analyzing eNB logfile
\u001B
[0m
'
+
fileToAnalyze
)
logStatus
=
self
.
AnalyzeLogFile_eNB
(
fileToAnalyze
)
if
(
logStatus
<
0
):
self
.
CreateHtmlTestRow
(
'N/A'
,
'KO'
,
logStatus
)
...
...
ci-scripts/xml_files/enb_usrp210_band7_test_05mhz_tm1.xml
View file @
b99c6a89
...
...
@@ -30,7 +30,7 @@
030101 040301 040501 040603 040604 040605 040606 040607 040641 040642 040643 040644 040401 040201 030201
030102 000010 040301 040502 000011 040302 000001 000012 040303 000002 000013 040503 040401 040201 030201
050102
03010
2
000020 040301 040504 000021 040302 000001 000022 040303 000002 040504 000023 040401 040201 030201
03010
3
000020 040301 040504 000021 040302 000001 000022 040303 000002 040504 000023 040401 040201 030201
050202
</TestCaseRequestedList>
<TestCaseExclusionList></TestCaseExclusionList>
...
...
@@ -113,13 +113,13 @@
<testCase
id=
"030102"
>
<class>
Initialize_eNB
</class>
<desc>
Initialize eNB (FDD/Band7/5MHz)
</desc>
<desc>
Initialize eNB (FDD/Band7/5MHz)
for RRC Inactivity Timer testing -- no FlexRan Ctl
</desc>
<Initialize_eNB_args>
-O ci-scripts/conf_files/enb.band7.tm1.25PRB.usrpb210.conf
</Initialize_eNB_args>
</testCase>
<testCase
id=
"030103"
>
<class>
Initialize_eNB
</class>
<desc>
Initialize eNB (FDD/Band7/5MHz)
</desc>
<desc>
Initialize eNB (FDD/Band7/5MHz)
for RRC Inactivity Timer testing -- with FlexRan Ctl
</desc>
<Initialize_eNB_args>
-O ci-scripts/conf_files/enb.band7.tm1.25PRB.usrpb210.conf
</Initialize_eNB_args>
</testCase>
...
...
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