Convert list of (black-)regex's to a space-separated string

This commit is contained in:
Corey Bryant
2020-03-04 18:52:34 +00:00
parent 456b08c032
commit 4d8cd803ff

View File

@@ -22,9 +22,13 @@ class TempestTest():
if config.get('smoke'):
tempest_options.extend(['--smoke'])
if config.get('regex'):
tempest_options.extend(['--regex', config.get('regex')])
tempest_options.extend(
['--regex',
' '.join([reg for reg in config.get('regex')])])
if config.get('black-regex'):
tempest_options.extend(['--black-regex', config.get('black-regex')])
tempest_options.extend(
['--black-regex',
' '.join([reg for reg in config.get('black-regex')])])
with tempfile.TemporaryDirectory() as tmpdirname:
if config.get('whitelist'):
white_file = os.path.join(tmpdirname, 'white.cfg')