aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSerenaFeng <feng.xiaowei@zte.com.cn>2016-11-24 14:24:47 +0800
committerSerenaFeng <feng.xiaowei@zte.com.cn>2016-11-24 14:24:47 +0800
commit6183a7545797733309e42fcc3e8138ce8901c357 (patch)
tree6911520f614eb7febbaf538e6c976d99db9f939f
parent389bc4ce909ed3f8a023218ddac833926aa80492 (diff)
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 <feng.xiaowei@zte.com.cn>
-rw-r--r--functest/ci/run_tests.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/functest/ci/run_tests.py b/functest/ci/run_tests.py
index e8be4290..015b5840 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']))