Merge "rename tempest.conf to refstack_tempest.conf"
[functest.git] / functest / ci / run_tests.py
index 5793c04..e68901b 100755 (executable)
@@ -144,7 +144,8 @@ def run_test(test, tier_name, testcases=None):
         try:
             module = importlib.import_module(run_dict['module'])
             cls = getattr(module, run_dict['class'])
-            test_case = cls(case_name=test_name)
+            test_dict = ft_utils.get_dict_by_test(test_name)
+            test_case = cls(**test_dict)
 
             try:
                 kwargs = run_dict['args']
@@ -154,7 +155,7 @@ def run_test(test, tier_name, testcases=None):
             if result == testcase.TestCase.EX_OK:
                 if GlobalVariables.REPORT_FLAG:
                     test_case.push_to_db()
-                result = test_case.check_criteria()
+                result = test_case.check_result()
         except ImportError:
             logger.exception("Cannot import module {}".format(
                 run_dict['module']))