aboutsummaryrefslogtreecommitdiffstats
path: root/functest/ci
diff options
context:
space:
mode:
authorJose Lausuch <jose.lausuch@ericsson.com>2016-12-16 09:58:00 +0000
committerGerrit Code Review <gerrit@opnfv.org>2016-12-16 09:58:00 +0000
commit9251dcc0c689edc182ab7ae5a7fabc7da6544eca (patch)
treedf71e10ea2613fd904a89a7577bbf809ef35d47f /functest/ci
parente9062a334bf73c19f3de74465209eaf099c46a26 (diff)
parent0d875d44c3d67e049c165365add1084467143b62 (diff)
Merge "Add check_criteria() in testcase_base"
Diffstat (limited to 'functest/ci')
-rwxr-xr-x[-rw-r--r--]functest/ci/run_tests.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/functest/ci/run_tests.py b/functest/ci/run_tests.py
index d6991f66..557ba08d 100644..100755
--- a/functest/ci/run_tests.py
+++ b/functest/ci/run_tests.py
@@ -141,9 +141,10 @@ def run_test(test, tier_name):
cls = getattr(module, run_dict['class'])
test_case = cls()
result = test_case.run()
- if (result == testcase_base.TestcaseBase.EX_OK and
- GlobalVariables.REPORT_FLAG):
- test_case.push_to_db()
+ if result == testcase_base.TestcaseBase.EX_OK:
+ if GlobalVariables.REPORT_FLAG:
+ test_case.push_to_db()
+ result = test_case.check_criteria()
except ImportError:
logger.exception("Cannot import module {}".format(
run_dict['module']))