summaryrefslogtreecommitdiffstats
path: root/testcases/VIM/OpenStack/CI/libraries/run_tempest.py
diff options
context:
space:
mode:
authorViktor Tikkanen <viktor.tikkanen@nokia.com>2015-12-30 10:00:13 +0200
committerViktor Tikkanen <viktor.tikkanen@nokia.com>2015-12-30 10:10:57 +0200
commitc7a557e16a7dfa50d904b2c1a15d9448a9ab9d09 (patch)
tree55074c594f59543aa0a3ffb3b737d71b13deb67b /testcases/VIM/OpenStack/CI/libraries/run_tempest.py
parente250cde1fc43246c3464e0efd35fc5fb1fece561 (diff)
Support for customized tempest case list
Newer release (0.1.2) of Rally has introduced some syntax changes (e.g. "--set" option for test set selection), so run_tempest.py is updated according to them. Custom test case list is taken into use instead of smoke test set. The list itself is updated (rally didn't recognize test cases with 'gate' definition). JIRA: FUNCTEST-72 Change-Id: I5e178f90f66fda7cb8099ddb4f82b93af3148c79 Signed-off-by: Viktor Tikkanen <viktor.tikkanen@nokia.com>
Diffstat (limited to 'testcases/VIM/OpenStack/CI/libraries/run_tempest.py')
-rw-r--r--testcases/VIM/OpenStack/CI/libraries/run_tempest.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/testcases/VIM/OpenStack/CI/libraries/run_tempest.py b/testcases/VIM/OpenStack/CI/libraries/run_tempest.py
index de91bf110..41fd4b7cb 100644
--- a/testcases/VIM/OpenStack/CI/libraries/run_tempest.py
+++ b/testcases/VIM/OpenStack/CI/libraries/run_tempest.py
@@ -20,7 +20,7 @@ import yaml
modes = ['full', 'smoke', 'baremetal', 'compute', 'data_processing',
'identity', 'image', 'network', 'object_storage', 'orchestration',
- 'telemetry', 'volume']
+ 'telemetry', 'volume', 'custom']
""" tests configuration """
parser = argparse.ArgumentParser()
@@ -151,8 +151,10 @@ def main():
logger.error("Tempest mode not valid. Possible values are:\n"
+ str(modes))
exit(-1)
+ elif (args.mode == 'custom'):
+ MODE = "--tests-file "+REPO_PATH+"testcases/VIM/OpenStack/CI/custom_tests/test_list.txt"
else:
- MODE = args.mode
+ MODE = "--set "+args.mode
run_tempest(MODE)