From c7a557e16a7dfa50d904b2c1a15d9448a9ab9d09 Mon Sep 17 00:00:00 2001 From: Viktor Tikkanen Date: Wed, 30 Dec 2015 10:00:13 +0200 Subject: 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 --- testcases/VIM/OpenStack/CI/libraries/run_tempest.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'testcases/VIM/OpenStack/CI/libraries/run_tempest.py') 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) -- cgit 1.2.3-korg