bugfix: correct test report status
authorSerenaFeng <feng.xiaowei@zte.com.cn>
Thu, 24 Nov 2016 06:24:47 +0000 (14:24 +0800)
committerSerenaFeng <feng.xiaowei@zte.com.cn>
Thu, 24 Nov 2016 06:24:47 +0000 (14:24 +0800)
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 <feng.xiaowei@zte.com.cn>
functest/ci/run_tests.py

index e8be429..015b584 100644 (file)
@@ -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']))