X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=yardstick%2Fbenchmark%2Fscenarios%2Fnetworking%2Fvtc_throughput.py;h=b9cb0b1e7c04e2e705f68ff310c95a6e00419264;hb=5c4b29189bd69912c9bc356a15a46db764045537;hp=fe7a8847013149bdb32939122643311fe17351a2;hpb=52119ea7faa57c7d9d9943fdf032446aa76e8eee;p=yardstick.git diff --git a/yardstick/benchmark/scenarios/networking/vtc_throughput.py b/yardstick/benchmark/scenarios/networking/vtc_throughput.py index fe7a88470..b9cb0b1e7 100644 --- a/yardstick/benchmark/scenarios/networking/vtc_throughput.py +++ b/yardstick/benchmark/scenarios/networking/vtc_throughput.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 VtcThroughput(base.Scenario): self.setup_done = False def setup(self): - '''scenario setup''' + """scenario setup""" self.options = self.scenario_cfg['options'] self.setup_done = True @@ -72,14 +73,16 @@ class VtcThroughput(base.Scenario): test_case['params']['vlan_receiver'] = \ str(self.options['vlan_receiver']) + 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)