diff options
author | Jose Lausuch <jose.lausuch@ericsson.com> | 2017-02-02 22:58:20 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-02-02 22:58:20 +0000 |
commit | c4046f202bef666842dae42a65de3443969d999f (patch) | |
tree | c13d1b1d33a1957a1313f73b33d09a9a767ec973 /functest | |
parent | 65865e43dc9754ae8bbb54dda37514ab8164d2d2 (diff) | |
parent | 93a1ae5974a398adec18ed5580f3d328f646ed02 (diff) |
Merge "Define how to pass args to TestcaseBase.run"
Diffstat (limited to 'functest')
-rwxr-xr-x | functest/ci/run_tests.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/functest/ci/run_tests.py b/functest/ci/run_tests.py index ef080016..320102dd 100755 --- a/functest/ci/run_tests.py +++ b/functest/ci/run_tests.py @@ -148,7 +148,11 @@ def run_test(test, tier_name, testcases=None): module = importlib.import_module(run_dict['module']) cls = getattr(module, run_dict['class']) test_case = cls() - result = test_case.run() + try: + kwargs = run_dict['args'] + result = test_case.run(**kwargs) + except KeyError: + result = test_case.run() if result == testcase_base.TestcaseBase.EX_OK: if GlobalVariables.REPORT_FLAG: test_case.publish_report() |