diff options
author | Sridhar Rao <sridhar.rao@spirent.com> | 2021-06-17 12:00:37 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2021-06-17 12:00:37 +0000 |
commit | 8af88b77b668bf2c6bdf61d4bc777f414c935f6c (patch) | |
tree | e6ea5e71ba594c7593fbfdb94eec6cf35ab4980f /vsperf | |
parent | 7e7df7806ac7fdd23f29f26217eb3385134cbf1e (diff) | |
parent | 76878eb2972ad789c2eb7fe3f2eefa285b3e72d6 (diff) |
Merge "[WIP] - Reporting support for Openstack and K8S Test Runs."
Diffstat (limited to 'vsperf')
-rwxr-xr-x | vsperf | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -47,6 +47,7 @@ from tools import functions from tools.pkt_gen import trafficgen from tools.opnfvdashboard import opnfvdashboard from tools.os_deploy_tgen import osdt +from tools.report import cloudinfo sys.dont_write_bytecode = True VERBOSITY_LEVELS = { @@ -728,6 +729,7 @@ def main(): settings.setValue('K8S', False) if args['openstack']: + settings.setValue('OPENSTACK', True) result = osdt.deploy_testvnf() if result: _LOGGER.info('TestVNF successfully deployed on Openstack') @@ -735,6 +737,9 @@ def main(): else: _LOGGER.error('Failed to deploy TestVNF in Openstac') sys.exit(1) + else: + settings.setValue('OPENSTACK', False) + # update paths to trafficgens if required if settings.getValue('mode') == 'trafficgen': functions.settings_update_paths() @@ -879,6 +884,9 @@ def main(): suite = unittest.TestSuite() settings_snapshot = copy.deepcopy(settings.__dict__) + if settings.getValue('OPENSTACK') or settings.getValue('K8S'): + cloudinfo.save_cloud_info() + for i, cfg in enumerate(selected_tests): settings.setValue('_TEST_INDEX', i) test_name = cfg.get('Name', '<Name not set>') |