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
promise
OpenXG-RAN
Commits
d273ae84
Commit
d273ae84
authored
Jul 17, 2020
by
Remi Hardy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added a class function to check adb returned values from a list
parent
2e5d0db7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
ci-scripts/sshconnection.py
ci-scripts/sshconnection.py
+12
-0
No files found.
ci-scripts/sshconnection.py
View file @
d273ae84
...
...
@@ -101,6 +101,18 @@ class SSHConnection():
else
:
sys
.
exit
(
'SSH Connection Failed'
)
def
cde_check_value
(
self
,
commandline
,
expected
,
timeout
):
logging
.
debug
(
commandline
)
self
.
ssh
.
timeout
=
timeout
self
.
ssh
.
sendline
(
commandline
)
expected
.
append
(
pexpect
.
EOF
)
expected
.
append
(
pexpect
.
TIMEOUT
)
self
.
sshresponse
=
self
.
ssh
.
expect
(
expected
)
return
self
.
sshresponse
def
command
(
self
,
commandline
,
expectedline
,
timeout
):
logging
.
debug
(
commandline
)
self
.
ssh
.
timeout
=
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