diff options
author | jose.lausuch <jose.lausuch@ericsson.com> | 2016-07-25 11:43:01 +0200 |
---|---|---|
committer | jose.lausuch <jose.lausuch@ericsson.com> | 2016-07-25 12:10:07 +0200 |
commit | 9ca917e17b6d04bce32cc420954aada538a60ddb (patch) | |
tree | f5e49200e37186a5947edb19da2a34e00fcf5445 /ci/tier_handler.py | |
parent | 0f6c6171d514f6f7c3cb376bd40f20468a37bc41 (diff) |
Create a flag in the tests to indicate if they should be blocking or not
JIRA: FUNCTEST-380
Change-Id: I737d71a47ddac80bf0222a1f004af05f509c5971
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
Diffstat (limited to 'ci/tier_handler.py')
-rw-r--r-- | ci/tier_handler.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/ci/tier_handler.py b/ci/tier_handler.py index 20a47e997..27b9cbcfd 100644 --- a/ci/tier_handler.py +++ b/ci/tier_handler.py @@ -29,6 +29,7 @@ def split_text(text, max_len): class Tier: + def __init__(self, name, order, ci_loop, description=""): self.tests_array = [] self.name = name @@ -102,11 +103,13 @@ class Tier: class TestCase: - def __init__(self, name, dependency, criteria, description=""): + + def __init__(self, name, dependency, criteria, blocking, description=""): self.name = name self.dependency = dependency self.description = description self.criteria = criteria + self.blocking = blocking def is_compatible(self, ci_installer, ci_scenario): try: @@ -128,6 +131,9 @@ class TestCase: def get_criteria(self): return self.criteria + def get_blocking(self): + return self.blocking + def __str__(self): lines = split_text(self.description, LINE_LENGTH - 6) @@ -151,6 +157,7 @@ class TestCase: class Dependency: + def __init__(self, installer, scenario): self.installer = installer self.scenario = scenario |