From 9ca917e17b6d04bce32cc420954aada538a60ddb Mon Sep 17 00:00:00 2001 From: "jose.lausuch" Date: Mon, 25 Jul 2016 11:43:01 +0200 Subject: 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 --- ci/tier_handler.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'ci/tier_handler.py') diff --git a/ci/tier_handler.py b/ci/tier_handler.py index 20a47e99..27b9cbcf 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 -- cgit 1.2.3-korg