aboutsummaryrefslogtreecommitdiffstats
path: root/functest
diff options
context:
space:
mode:
Diffstat (limited to 'functest')
-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 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(
diff --git a/functest/core/TestCasesBase.py b/functest/core/TestCasesBase.py
index 777b09f0..725e17af 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()