diff options
author | 2016-07-25 11:42:07 +0000 | |
---|---|---|
committer | 2016-07-25 11:42:07 +0000 | |
commit | 0b94abfbb2173cf1a090e727a607045a33e75929 (patch) | |
tree | f78d92262b11469420fd4392d85d4221d3fd8ac6 /ci/tier_handler.py | |
parent | a6e8b23db1d3106d790a506c8e8277b1e638ddbd (diff) | |
parent | 9ca917e17b6d04bce32cc420954aada538a60ddb (diff) |
Merge "Create a flag in the tests to indicate if they should be blocking or not"
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 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 |