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
wangwenhui
OpenXG-RAN
Commits
564db9c3
Commit
564db9c3
authored
Apr 06, 2020
by
Gabriele Perrone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
debugging
parent
eff978af
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
7 deletions
+1
-7
ci-scripts/main.py
ci-scripts/main.py
+1
-7
No files found.
ci-scripts/main.py
View file @
564db9c3
...
@@ -751,11 +751,7 @@ class OaiCiTest():
...
@@ -751,11 +751,7 @@ class OaiCiTest():
else
:
else
:
SSH
.
command
(
'ssh '
+
self
.
UEDevicesRemoteUser
[
idx
]
+
'@'
+
self
.
UEDevicesRemoteServer
[
idx
]
+
'
\'
adb -s '
+
device_id
+
' shell "dumpsys telephony.registry"
\'
| grep -m 1 mDataConnectionState'
,
'\$'
,
60
)
SSH
.
command
(
'ssh '
+
self
.
UEDevicesRemoteUser
[
idx
]
+
'@'
+
self
.
UEDevicesRemoteServer
[
idx
]
+
'
\'
adb -s '
+
device_id
+
' shell "dumpsys telephony.registry"
\'
| grep -m 1 mDataConnectionState'
,
'\$'
,
60
)
result
=
re
.
search
(
'mDataConnectionState.*=(?P<state>[0-9\-]+)'
,
SSH
.
getBefore
())
result
=
re
.
search
(
'mDataConnectionState.*=(?P<state>[0-9\-]+)'
,
SSH
.
getBefore
())
print
(
"
\n
"
)
print
(
SSH
.
getBefore
())
#GP debugging
print
(
SSH
.
getBefore
())
print
(
"
\n
"
)
print
(
result
)
print
(
"
\n
"
)
if
result
is
None
:
if
result
is
None
:
logging
.
debug
(
'
\u001B
[1;37;41m mDataConnectionState Not Found!
\u001B
[0m'
)
logging
.
debug
(
'
\u001B
[1;37;41m mDataConnectionState Not Found!
\u001B
[0m'
)
lock
.
acquire
()
lock
.
acquire
()
...
@@ -765,8 +761,6 @@ class OaiCiTest():
...
@@ -765,8 +761,6 @@ class OaiCiTest():
lock
.
release
()
lock
.
release
()
break
break
mDataConnectionState
=
int
(
result
.
group
(
'state'
))
mDataConnectionState
=
int
(
result
.
group
(
'state'
))
print
(
mDataConnectionState
)
print
(
"
\n
"
)
if
mDataConnectionState
==
2
:
if
mDataConnectionState
==
2
:
logging
.
debug
(
'
\u001B
[1mUE ('
+
device_id
+
') Attach Completed
\u001B
[0m'
)
logging
.
debug
(
'
\u001B
[1mUE ('
+
device_id
+
') Attach Completed
\u001B
[0m'
)
lock
.
acquire
()
lock
.
acquire
()
...
...
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