aboutsummaryrefslogtreecommitdiffstats
path: root/functest/ci
diff options
context:
space:
mode:
authorMorgan Richomme <morgan.richomme@orange.com>2016-11-29 10:10:47 +0000
committerCédric Ollivier <cedric.ollivier@orange.com>2016-11-30 20:19:17 +0100
commitb7b59a2360ad2ac1994b4f4ddc2a3817ca2a395d (patch)
tree406a74dd1b564085de1b0b2cebd32f10c88737f5 /functest/ci
parent0c4870bbdb32540ff358ea0b7cc068645c0a4db1 (diff)
Revert "solve failure testcases are not pushed to testDB problem"
This reverts commit a41264c46d583a68d48de041663213752dc62bf3. Change-Id: Id62c5342fffb5d75672127d9765d4cc882e3f4df Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
Diffstat (limited to 'functest/ci')
-rw-r--r--functest/ci/run_tests.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/functest/ci/run_tests.py b/functest/ci/run_tests.py
index da9d28a9..66d5881d 100644
--- a/functest/ci/run_tests.py
+++ b/functest/ci/run_tests.py
@@ -140,10 +140,9 @@ def run_test(test, tier_name):
cls = getattr(module, run_dict['class'])
test_case = cls()
result = test_case.run()
-
- if result != TestCasesBase.TestCasesBase.EX_SKIP and \
- GlobalVariables.REPORT_FLAG:
- test_case.push_to_db()
+ if (result == TestCasesBase.TestCasesBase.EX_OK and
+ GlobalVariables.REPORT_FLAG):
+ result = test_case.push_to_db()
except ImportError:
logger.exception("Cannot import module {}".format(
run_dict['module']))