X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=functest%2Fci%2Ftier_handler.py;h=6b4864b5bebfb148eb20c7dcb25b718d8544b860;hb=e6f875c4a756245c47211483247fe3674fd73834;hp=127986bf3f335c67575720b634aa0ed74b8dafc4;hpb=fbd916ea2e0783c3beb517fd4c69f139eafe1688;p=functest.git diff --git a/functest/ci/tier_handler.py b/functest/ci/tier_handler.py old mode 100755 new mode 100644 index 127986bf3..6b4864b5b --- a/functest/ci/tier_handler.py +++ b/functest/ci/tier_handler.py @@ -104,12 +104,18 @@ class Tier(object): class TestCase(object): - def __init__(self, name, dependency, criteria, blocking, description=""): + def __init__(self, name, + dependency, + criteria, + blocking, + clean_flag, + description=""): self.name = name self.dependency = dependency - self.description = description self.criteria = criteria self.blocking = blocking + self.clean_flag = clean_flag + self.description = description @staticmethod def is_none(item): @@ -138,6 +144,9 @@ class TestCase(object): def is_blocking(self): return self.blocking + def needs_clean(self): + return self.clean_flag + def __str__(self): lines = split_text(self.description, LINE_LENGTH - 6)