aboutsummaryrefslogtreecommitdiffstats
path: root/xtesting/ci/tier_handler.py
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2018-08-10 13:04:11 +0200
committerCédric Ollivier <cedric.ollivier@orange.com>2018-08-12 12:08:52 +0200
commita9491ef0948f8fe3eb3772b6b6ae44d86bde7e9b (patch)
tree9dfc1985294fed2e579dc662da9d589baa0be9b8 /xtesting/ci/tier_handler.py
parentb7f4eaa213b65a266f527d9def7679eac7e0353b (diff)
Skip the selected testcase too0.56
It completes "Allow calling a skip test" [1] [1] https://gerrit.opnfv.org/gerrit/60655 Change-Id: I02499aed56e6b23563165ea1f17b476e12408823 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
Diffstat (limited to 'xtesting/ci/tier_handler.py')
-rw-r--r--xtesting/ci/tier_handler.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/xtesting/ci/tier_handler.py b/xtesting/ci/tier_handler.py
index 11a0858e..ce9685be 100644
--- a/xtesting/ci/tier_handler.py
+++ b/xtesting/ci/tier_handler.py
@@ -97,11 +97,12 @@ class Tier(object):
class TestCase(object):
- def __init__(self, name, enabled, criteria, blocking,
+ def __init__(self, name, enabled, skipped, criteria, blocking,
description="", project=""):
# pylint: disable=too-many-arguments
self.name = name
self.enabled = enabled
+ self.skipped = skipped
self.criteria = criteria
self.blocking = blocking
self.description = description
@@ -113,6 +114,9 @@ class TestCase(object):
def is_enabled(self):
return self.enabled
+ def is_skipped(self):
+ return self.skipped
+
def get_criteria(self):
return self.criteria