Skip to content

Commit

Permalink
tempest: Add serial config
Browse files Browse the repository at this point in the history
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 <subnet-uuid>."
  • Loading branch information
Corey Bryant committed Oct 19, 2023
1 parent 7bd8920 commit 19d8fc3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions zaza/openstack/charm_tests/tempest/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@ def run(self):
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')
Expand Down

0 comments on commit 19d8fc3

Please sign in to comment.