summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJose Lausuch <jose.lausuch@ericsson.com>2017-02-02 22:58:20 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-02-02 22:58:20 +0000
commitc4046f202bef666842dae42a65de3443969d999f (patch)
treec13d1b1d33a1957a1313f73b33d09a9a767ec973
parent65865e43dc9754ae8bbb54dda37514ab8164d2d2 (diff)
parent93a1ae5974a398adec18ed5580f3d328f646ed02 (diff)
Merge "Define how to pass args to TestcaseBase.run"
-rwxr-xr-xfunctest/ci/run_tests.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/functest/ci/run_tests.py b/functest/ci/run_tests.py
index ef0800163..320102ddc 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()