From 19d8fc3db48376b6ce14822a9b39ca38d7adc5f2 Mon Sep 17 00:00:00 2001 From: Corey Bryant Date: Thu, 19 Oct 2023 13:41:03 -0400 Subject: [PATCH] tempest: Add serial config The serial config can be set to True to add the --serial flag to the tempest run. This appears to be useful with the current state of serverstack and fixing tests that fail due to "Bad router request: Router already has a port on subnet ." --- zaza/openstack/charm_tests/tempest/tests.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/zaza/openstack/charm_tests/tempest/tests.py b/zaza/openstack/charm_tests/tempest/tests.py index e3dbf1b..350ba47 100644 --- a/zaza/openstack/charm_tests/tempest/tests.py +++ b/zaza/openstack/charm_tests/tempest/tests.py @@ -81,6 +81,9 @@ class TempestTestBase(): tempest_options.extend( ['--concurrency', str(config.get('concurrency', min(os.cpu_count(), 4)))]) + serial = config.get('serial') + if serial and serial is True: + tempest_options.extend(['--serial']) with tempfile.TemporaryDirectory() as tmpdirname: if config.get('include-list'): include_file = os.path.join(tmpdirname, 'include.cfg')