X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;ds=sidebyside;f=yardstick%2Fbenchmark%2Fscenarios%2Fnetworking%2Fvtc_throughput_noisy.py;h=38ebc4c4299fcc8d5e4972ad5318fb88995c62d6;hb=ce91fca5ade5ede330bf4c799dbffdf1b4762a9a;hp=ad3832fb54a0bc3d1a3e0e657e80244d63ed3840;hpb=bde7eae17a1fc9ec163451b8d62825daa2fec297;p=yardstick.git diff --git a/yardstick/benchmark/scenarios/networking/vtc_throughput_noisy.py b/yardstick/benchmark/scenarios/networking/vtc_throughput_noisy.py index ad3832fb5..38ebc4c42 100644 --- a/yardstick/benchmark/scenarios/networking/vtc_throughput_noisy.py +++ b/yardstick/benchmark/scenarios/networking/vtc_throughput_noisy.py @@ -7,6 +7,7 @@ # http://www.apache.org/licenses/LICENSE-2.0 ############################################################################## +from __future__ import absolute_import import logging import os @@ -28,7 +29,7 @@ class VtcThroughputNoisy(base.Scenario): self.setup_done = False def setup(self): - '''scenario setup''' + """scenario setup""" self.options = self.scenario_cfg['options'] self.setup_done = True @@ -77,15 +78,21 @@ class VtcThroughputNoisy(base.Scenario): str(self.options['amount_of_ram']) test_case['params']['number_of_cores'] = \ str(self.options['number_of_cores']) + test_case['params']['network'] = \ + str(self.options['default_net_name']) + test_case['params']['subnet'] = \ + str(self.options['default_subnet_name']) + res = dict() try: - result = api.FrameworkApi.execute_framework( + res = api.FrameworkApi.execute_framework( [test_case], iterations, heat_template, heat_template_parameters, deployment_configuration, openstack_credentials) - except Exception as e: - LOG.info('Exception: {}'.format(e.message)) - LOG.info('Got output: {}'.format(result)) + except Exception: + LOG.exception('Exception') + LOG.info('Got output: %s', res) + result.update(res)