From: SerenaFeng Date: Thu, 24 Nov 2016 06:24:47 +0000 (+0800) Subject: bugfix: correct test report status X-Git-Tag: danube.1.RC1~296^2 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F25%2F24825%2F1;p=functest.git bugfix: correct test report status reporting status of the test result should be checked based on execution result not push_to_db result Change-Id: I6f550f8243ba021108ce899cbebe98f3ff45c0e1 Signed-off-by: SerenaFeng --- diff --git a/functest/ci/run_tests.py b/functest/ci/run_tests.py index e8be42902..015b5840d 100644 --- a/functest/ci/run_tests.py +++ b/functest/ci/run_tests.py @@ -124,7 +124,7 @@ def run_test(test, tier_name): test_case = cls() result = test_case.run() if result != TestCasesBase.TestCasesBase.EX_SKIP and REPORT_FLAG: - result = test_case.push_to_db() + test_case.push_to_db() except ImportError: logger.exception("Cannot import module {}".format( run_dict['module']))