diff options
author | Morgan Richomme <morgan.richomme@orange.com> | 2016-06-02 07:41:44 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@172.30.200.206> | 2016-06-02 07:41:44 +0000 |
commit | 7a55bacfa9d2c2fff84904578e7ebff0eb4cfb09 (patch) | |
tree | b37a243958b78ec30e04833ed8d57a6790549710 /ci/tier_handler.py | |
parent | 5bf1647dec6860464eeb082b2875798f0759aa91 (diff) | |
parent | 69fe5baee1cfb9f55c798620dda3151eab700bc7 (diff) |
Merge "Add criteria in testcases.yaml and Test class"
Diffstat (limited to 'ci/tier_handler.py')
-rw-r--r-- | ci/tier_handler.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/ci/tier_handler.py b/ci/tier_handler.py index b1ef52d8f..20a47e997 100644 --- a/ci/tier_handler.py +++ b/ci/tier_handler.py @@ -102,10 +102,11 @@ class Tier: class TestCase: - def __init__(self, name, dependency, description=""): + def __init__(self, name, dependency, criteria, description=""): self.name = name self.dependency = dependency self.description = description + self.criteria = criteria def is_compatible(self, ci_installer, ci_scenario): try: @@ -124,6 +125,9 @@ class TestCase: def get_name(self): return self.name + def get_criteria(self): + return self.criteria + def __str__(self): lines = split_text(self.description, LINE_LENGTH - 6) @@ -134,6 +138,8 @@ class TestCase: out += ("| Description:".ljust(LINE_LENGTH - 1) + "|\n") for line in lines: out += ("| " + line.ljust(LINE_LENGTH - 7) + " |\n") + out += ("| Criteria: " + + self.criteria.ljust(LINE_LENGTH - 14) + "|\n") out += ("| Dependencies:".ljust(LINE_LENGTH - 1) + "|\n") installer = self.dependency.get_installer() scenario = self.dependency.get_scenario() |