X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=resources%2Flibraries%2Fpython%2FDUTSetup.py;h=4834ba68283c456219d1f0a827f0d9d85cc62444;hp=dabdfceef201252352172e6daeda55233f747dd2;hb=refs%2Fchanges%2F96%2F6896%2F5;hpb=39311c05e6a056a3f33ec2cf050a00665c8f4540 diff --git a/resources/libraries/python/DUTSetup.py b/resources/libraries/python/DUTSetup.py index dabdfceef2..4834ba6828 100644 --- 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: - 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: - 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):