aboutsummaryrefslogtreecommitdiffstats
path: root/functest/ci/run_tests.py
diff options
context:
space:
mode:
authorSerenaFeng <feng.xiaowei@zte.com.cn>2016-11-23 15:43:39 +0800
committerSerena Feng <feng.xiaowei@zte.com.cn>2016-11-23 07:49:37 +0000
commita41264c46d583a68d48de041663213752dc62bf3 (patch)
tree6907adb6f728b85c7198ceda73ae6cbcb6a7029e /functest/ci/run_tests.py
parentc825e41b2ec5ddccd051e7764496e4a2de71fef6 (diff)
solve failure testcases are not pushed to testDB problem
In the new framework, only success testcases will be pushed to testDB, a failure testcases will not be pushed to testDB, which is not correct Modify it with only skipped testcases will not be pushed to testDB Change-Id: Ie3cb06ef0d0f75a7ab0b540d2f9f79d4b56746e6 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
Diffstat (limited to 'functest/ci/run_tests.py')
-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 70b5bbc8..e8be4290 100644
--- a/functest/ci/run_tests.py
+++ b/functest/ci/run_tests.py
@@ -123,7 +123,7 @@ def run_test(test, tier_name):
cls = getattr(module, run_dict['class'])
test_case = cls()
result = test_case.run()
- if result == TestCasesBase.TestCasesBase.EX_OK and REPORT_FLAG:
+ if result != TestCasesBase.TestCasesBase.EX_SKIP and REPORT_FLAG:
result = test_case.push_to_db()
except ImportError:
logger.exception("Cannot import module {}".format(