aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorgan Richomme <morgan.richomme@orange.com>2016-11-23 10:13:41 +0000
committerGerrit Code Review <gerrit@opnfv.org>2016-11-23 10:13:41 +0000
commit389bc4ce909ed3f8a023218ddac833926aa80492 (patch)
treed183f502bb0b72996e0662a9966a3d84faf076b2
parentd51ab9676f7c6264ffe42be42ba70f5a273a290f (diff)
parenta41264c46d583a68d48de041663213752dc62bf3 (diff)
Merge "solve failure testcases are not pushed to testDB problem"
-rw-r--r--functest/ci/run_tests.py2
-rw-r--r--functest/core/TestCasesBase.py1
2 files changed, 2 insertions, 1 deletions
diff --git a/functest/ci/run_tests.py b/functest/ci/run_tests.py
index 70b5bbc8c..e8be42902 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(
diff --git a/functest/core/TestCasesBase.py b/functest/core/TestCasesBase.py
index bd02e13f0..ab1ad0d5d 100644
--- a/functest/core/TestCasesBase.py
+++ b/functest/core/TestCasesBase.py
@@ -18,6 +18,7 @@ class TestCasesBase(object):
EX_OK = os.EX_OK
EX_RUN_ERROR = os.EX_SOFTWARE
EX_PUSH_TO_DB_ERROR = os.EX_SOFTWARE - 1
+ EX_SKIP = os.EX_SOFTWARE - 2
logger = ft_logger.Logger(__name__).getLogger()