Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG UE
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
Michael Black
OpenXG UE
Commits
b9c6c0df
Commit
b9c6c0df
authored
Apr 06, 2020
by
Gabriele Perrone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
debugging
parent
969f65ac
Changes
2
Hide 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 @
b9c6c0df
...
...
@@ -750,8 +750,12 @@ class OaiCiTest():
SSH
.
command
(
'stdbuf -o0 adb -s '
+
device_id
+
' shell "dumpsys telephony.registry" | grep -m 1 mDataConnectionState'
,
'\$'
,
15
)
else
:
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
())
print
(
"
\n
"
)
print
(
SSH
.
getBefore
())
print
(
"
\n
"
)
print
(
result
)
print
(
"
\n
"
)
if
result
is
None
:
logging
.
debug
(
'
\u001B
[1;37;41m mDataConnectionState Not Found!
\u001B
[0m'
)
lock
.
acquire
()
...
...
@@ -761,6 +765,8 @@ class OaiCiTest():
lock
.
release
()
break
mDataConnectionState
=
int
(
result
.
group
(
'state'
))
print
(
mDataConnectionState
)
print
(
"
\n
"
)
if
mDataConnectionState
==
2
:
logging
.
debug
(
'
\u001B
[1mUE ('
+
device_id
+
') Attach Completed
\u001B
[0m'
)
lock
.
acquire
()
...
...
ci-scripts/sshconnection.py
View file @
b9c6c0df
...
...
@@ -87,7 +87,7 @@ class SSHConnection():
if
connect_status
:
pass
else
:
sys
.
exit
(
'
CiTestObj.
Connection Failed'
)
sys
.
exit
(
'
SSH
Connection Failed'
)
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