Add smoke to TempestTest as blacklist/whitelist/black-regex will be useful with it.

This commit is contained in:
Corey Bryant
2020-03-04 02:08:01 +00:00
parent be3659c4a2
commit 182cda9013
+2 -11
View File
@@ -19,6 +19,8 @@ class TempestTest():
if model_alias == zaza.charm_lifecycle.utils.DEFAULT_MODEL_ALIAS:
tempest_test_key = 'default'
config = charm_config['tests_options']['tempest'][tempest_test_key]
if config.get('smoke'):
tempest_options.extend(['--smoke'])
if config.get('regex'):
tempest_options.extend(['--regex', config.get('regex')])
if config.get('black-regex'):
@@ -42,14 +44,3 @@ class TempestTest():
if not _exec_tempest:
return False
return True
class TempestSmokeTest():
test_runner = zaza.charm_lifecycle.test.DIRECT
def run(self):
the_app = tempest.cmd.main.Main()
return the_app.run([
'run',
'--smoke',
'--config', 'tempest/etc/tempest.conf'])