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
canghaiwuhen
OpenXG-RAN
Commits
8bd3075a
Commit
8bd3075a
authored
Mar 21, 2019
by
Raphael Defosseux
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CI: more details on the UE status
Signed-off-by:
Raphael Defosseux
<
raphael.defosseux@eurecom.fr
>
parent
5d82287f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
44 additions
and
9 deletions
+44
-9
ci-scripts/main.py
ci-scripts/main.py
+35
-6
ci-scripts/xml_files/enb_usrp210_band7_test_05mhz_tm1.xml
ci-scripts/xml_files/enb_usrp210_band7_test_05mhz_tm1.xml
+9
-3
No files found.
ci-scripts/main.py
View file @
8bd3075a
...
...
@@ -1079,15 +1079,44 @@ class SSHConnection():
def
CheckUEStatus_common
(
self
,
lock
,
device_id
,
statusQueue
):
try
:
self
.
open
(
self
.
ADBIPAddress
,
self
.
ADBUserName
,
self
.
ADBPassword
)
self
.
command
(
'stdbuf -o0 adb -s '
+
device_id
+
' shell dumpsys telephony.registry'
,
'\$'
,
15
)
result
=
re
.
search
(
'mServiceState=(?P<serviceState>[0-9]+)'
,
str
(
self
.
ssh
.
before
))
serviceState
=
'Service State: UNKNOWN'
if
result
is
not
None
:
lServiceState
=
int
(
result
.
group
(
'serviceState'
))
if
lServiceState
==
3
:
serviceState
=
'Service State: RADIO_POWERED_OFF'
if
lServiceState
==
1
:
serviceState
=
'Service State: OUT_OF_SERVICE'
if
lServiceState
==
0
:
serviceState
=
'Service State: IN_SERVICE'
if
lServiceState
==
2
:
serviceState
=
'Service State: EMERGENCY_ONLY'
result
=
re
.
search
(
'mDataConnectionState=(?P<dataConnectionState>[0-9]+)'
,
str
(
self
.
ssh
.
before
))
dataConnectionState
=
'Data State: UNKNOWN'
if
result
is
not
None
:
lDataConnectionState
=
int
(
result
.
group
(
'dataConnectionState'
))
if
lDataConnectionState
==
0
:
dataConnectionState
=
'Data State: DISCONNECTED'
if
lDataConnectionState
==
1
:
dataConnectionState
=
'Data State: CONNECTING'
if
lDataConnectionState
==
2
:
dataConnectionState
=
'Data State: CONNECTED'
if
lDataConnectionState
==
3
:
dataConnectionState
=
'Data State: SUSPENDED'
result
=
re
.
search
(
'mDataConnectionReason=(?P<dataConnectionReason>[0-9a-zA-Z_]+)'
,
str
(
self
.
ssh
.
before
))
dataConnectionReason
=
'Data Reason: UNKNOWN'
if
result
is
not
None
:
dataConnectionReason
=
'Data Reason: '
+
result
.
group
(
'dataConnectionReason'
)
lock
.
acquire
()
logging
.
debug
(
'
\u001B
[1;37;44m Status Check ('
+
str
(
device_id
)
+
')
\u001B
[0m'
)
#logging.debug('\u001B[1;34m ' + pal_msg + '\u001B[0m')
#logging.debug('\u001B[1;34m ' + min_msg + '\u001B[0m')
#logging.debug('\u001B[1;34m ' + avg_msg + '\u001B[0m')
#logging.debug('\u001B[1;34m ' + max_msg + '\u001B[0m')
logging
.
debug
(
'
\u001B
[1;34m '
+
serviceState
+
'
\u001B
[0m'
)
logging
.
debug
(
'
\u001B
[1;34m '
+
dataConnectionState
+
'
\u001B
[0m'
)
logging
.
debug
(
'
\u001B
[1;34m '
+
dataConnectionReason
+
'
\u001B
[0m'
)
statusQueue
.
put
(
0
)
statusQueue
.
put
(
device_id
)
statusQueue
.
put
(
'Nothing for the moment'
)
qMsg
=
serviceState
+
'
\n
'
+
dataConnectionState
+
'
\n
'
+
dataConnectionReason
statusQueue
.
put
(
qMsg
)
lock
.
release
()
self
.
close
()
except
:
...
...
@@ -1123,7 +1152,7 @@ class SSHConnection():
if
result
is
not
None
:
nb_ues
=
int
(
result
.
group
(
'nb_ues'
))
htmlOptions
=
'Nb Connected UE(s) to eNB = '
+
str
(
nb_ues
)
logging
.
debug
(
htmlOptions
)
logging
.
debug
(
'
\u001B
[1;37;44m '
+
htmlOptions
+
'
\u001B
[0m'
)
if
self
.
expectedNbOfConnectedUEs
>
-
1
:
if
nb_ues
!=
self
.
expectedNbOfConnectedUEs
:
passStatus
=
False
...
...
ci-scripts/xml_files/enb_usrp210_band7_test_05mhz_tm1.xml
View file @
8bd3075a
...
...
@@ -28,7 +28,7 @@
040101
030101 040301 040501 040603 040604 040605 040606 040607 040641 040642 040643 040644 040401 040201 030201
050102
030102 0
40301 040502 000010 040302 000001 000011 040303 000002 000012
040503 040401 040201 030201
030102 0
00010 040301 040502 000011 040302 000001 000012 040303 000002 000013
040503 040401 040201 030201
050202
</TestCaseRequestedList>
<TestCaseExclusionList></TestCaseExclusionList>
...
...
@@ -46,18 +46,24 @@
</testCase>
<testCase
id=
"000010"
>
<class>
CheckStatusUE
</class>
<desc>
Check UE(s) status before attachment
</desc>
<expectedNbOfConnectedUEs>
0
</expectedNbOfConnectedUEs>
</testCase>
<testCase
id=
"000011"
>
<class>
CheckStatusUE
</class>
<desc>
Check UE(s) status before data disabling
</desc>
<expectedNbOfConnectedUEs>
2
</expectedNbOfConnectedUEs>
</testCase>
<testCase
id=
"00001
1
"
>
<testCase
id=
"00001
2
"
>
<class>
CheckStatusUE
</class>
<desc>
Check UE(s) status after data disabling
</desc>
<expectedNbOfConnectedUEs>
0
</expectedNbOfConnectedUEs>
</testCase>
<testCase
id=
"00001
2
"
>
<testCase
id=
"00001
3
"
>
<class>
CheckStatusUE
</class>
<desc>
Check UE(s) status after data re-enabling
</desc>
<expectedNbOfConnectedUEs>
2
</expectedNbOfConnectedUEs>
...
...
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