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
lizhongxiao
OpenXG-RAN
Commits
eff978af
Commit
eff978af
authored
Apr 06, 2020
by
Gabriele Perrone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
debugging
parent
2ea0070d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
ci-scripts/main.py
ci-scripts/main.py
+7
-1
ci-scripts/sshconnection.py
ci-scripts/sshconnection.py
+1
-1
No files found.
ci-scripts/main.py
View file @
eff978af
...
@@ -750,8 +750,12 @@ class OaiCiTest():
...
@@ -750,8 +750,12 @@ class OaiCiTest():
SSH
.
command
(
'stdbuf -o0 adb -s '
+
device_id
+
' shell "dumpsys telephony.registry" | grep -m 1 mDataConnectionState'
,
'\$'
,
15
)
SSH
.
command
(
'stdbuf -o0 adb -s '
+
device_id
+
' shell "dumpsys telephony.registry" | grep -m 1 mDataConnectionState'
,
'\$'
,
15
)
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
)
print
(
'#GP: in SSH.getBefore() K=0 (it was K=2 in main.py)'
)
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
())
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
()
...
@@ -761,6 +765,8 @@ class OaiCiTest():
...
@@ -761,6 +765,8 @@ 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
()
...
...
ci-scripts/sshconnection.py
View file @
eff978af
...
@@ -87,7 +87,7 @@ class SSHConnection():
...
@@ -87,7 +87,7 @@ class SSHConnection():
if
connect_status
:
if
connect_status
:
pass
pass
else
:
else
:
sys
.
exit
(
'
CiTestObj.
Connection Failed'
)
sys
.
exit
(
'
SSH
Connection Failed'
)
def
command
(
self
,
commandline
,
expectedline
,
timeout
):
def
command
(
self
,
commandline
,
expectedline
,
timeout
):
...
...
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