Code Review
/
csit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Do not fail test case when no vpp pid detected in the tear down
[csit.git]
/
resources
/
libraries
/
python
/
DUTSetup.py
diff --git
a/resources/libraries/python/DUTSetup.py
b/resources/libraries/python/DUTSetup.py
index
dabdfce
..
4834ba6
100644
(file)
--- a/
resources/libraries/python/DUTSetup.py
+++ b/
resources/libraries/python/DUTSetup.py
@@
-127,11
+127,16
@@
class DUTSetup(object):
if len(stdout.splitlines()) == 1:
return int(stdout)
elif len(stdout.splitlines()) == 0:
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']))
+ logger.debug("No VPP PID found on node {0}".
+ format(node['host']))
+ return None
else:
else:
- raise RuntimeError("More then one VPP PID found on node {0}".
- format(node['host']))
+ logger.debug("More then one VPP PID found on node {0}".
+ format(node['host']))
+ ret_list = ()
+ for line in stdout.splitlines():
+ ret_list.append(int(line))
+ return ret_list
@staticmethod
def get_vpp_pids(nodes):
@staticmethod
def get_vpp_pids(nodes):