Code Review
/
csit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Upgrade T-rex to v2.22
[csit.git]
/
resources
/
libraries
/
python
/
DUTSetup.py
diff --git
a/resources/libraries/python/DUTSetup.py
b/resources/libraries/python/DUTSetup.py
index
1f87f03
..
275a546
100644
(file)
--- a/
resources/libraries/python/DUTSetup.py
+++ b/
resources/libraries/python/DUTSetup.py
@@
-123,10
+123,14
@@
class DUTSetup(object):
raise RuntimeError('Not possible to get PID of VPP process on node:'
' {}'.format(node['host']))
raise RuntimeError('Not possible to get PID of VPP process on node:'
' {}'.format(node['host']))
- if len(stdout.splitlines()) != 1:
+ if len(stdout.splitlines()) == 1:
+ return int(stdout)
+ elif len(stdout.splitlines()) == 0:
+ raise RuntimeError("No VPP PID found on node {0}".
+ format(node['host']))
+ else:
raise RuntimeError("More then one VPP PID found on node {0}".
format(node['host']))
raise RuntimeError("More then one VPP PID found on node {0}".
format(node['host']))
- return int(stdout)
@staticmethod
def get_vpp_pids(nodes):
@staticmethod
def get_vpp_pids(nodes):