diff options
author | Ross Brattain <ross.b.brattain@intel.com> | 2017-08-31 05:32:44 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-08-31 05:32:44 +0000 |
commit | ad748320c73587fd09ef7204f03ba3d74567ba78 (patch) | |
tree | bbc3418a7bf90c2d98129efe4198de2b9b1a20ce | |
parent | 51345464ec0385393569cb68bcaaf9bd6d921e9f (diff) | |
parent | da0f85b717bba64d4905542d74fd9b4b945647c3 (diff) |
Merge "sample_vnf: run_traffic loop, check if tg_process is alive"
-rw-r--r-- | yardstick/network_services/vnf_generic/vnf/sample_vnf.py | 3 |
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() |