summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoss Brattain <ross.b.brattain@intel.com>2017-08-31 05:32:44 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-08-31 05:32:44 +0000
commitad748320c73587fd09ef7204f03ba3d74567ba78 (patch)
treebbc3418a7bf90c2d98129efe4198de2b9b1a20ce
parent51345464ec0385393569cb68bcaaf9bd6d921e9f (diff)
parentda0f85b717bba64d4905542d74fd9b4b945647c3 (diff)
Merge "sample_vnf: run_traffic loop, check if tg_process is alive"
-rw-r--r--yardstick/network_services/vnf_generic/vnf/sample_vnf.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/yardstick/network_services/vnf_generic/vnf/sample_vnf.py b/yardstick/network_services/vnf_generic/vnf/sample_vnf.py
index 7a756837e..d7874a1a4 100644
--- a/yardstick/network_services/vnf_generic/vnf/sample_vnf.py
+++ b/yardstick/network_services/vnf_generic/vnf/sample_vnf.py
@@ -966,6 +966,9 @@ class SampleVNFTrafficGen(GenericTrafficGen):
# Wait for traffic process to start
while self.resource_helper.client_started.value == 0:
time.sleep(self.RUN_WAIT)
+ # what if traffic process takes a few seconds to start?
+ if not self._traffic_process.is_alive():
+ break
return self._traffic_process.is_alive()