aboutsummaryrefslogtreecommitdiffstats
path: root/ci/tier_handler.py
diff options
context:
space:
mode:
authorjose.lausuch <jose.lausuch@ericsson.com>2016-05-09 15:08:41 +0200
committerjose.lausuch <jose.lausuch@ericsson.com>2016-05-10 14:13:43 +0200
commit2d8974d6cebaa1428ab1a175ceb9a0432a84e615 (patch)
treee3b0c5d5108db3f824ef2aa5222a3e6ce06c0297 /ci/tier_handler.py
parentacd3d80504a56183a4909dce52b56bc7e15bc6cd (diff)
Adapt tiers to run depending on WEEKLY/DAILY
JIRA: FUNCTEST-244 Change-Id: I11bf28baff52b75b0f6c58845edc22f266dfcbe8 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
Diffstat (limited to 'ci/tier_handler.py')
-rw-r--r--ci/tier_handler.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/ci/tier_handler.py b/ci/tier_handler.py
index af6345f0..dd0d10c9 100644
--- a/ci/tier_handler.py
+++ b/ci/tier_handler.py
@@ -29,11 +29,11 @@ def split_text(text, max_len):
class Tier:
- def __init__(self, name, order, ci, description=""):
+ def __init__(self, name, order, ci_loop, description=""):
self.tests_array = []
self.name = name
self.order = order
- self.ci = ci
+ self.ci_loop = ci_loop
self.description = description
def add_test(self, testcase):
@@ -70,6 +70,9 @@ class Tier:
def get_order(self):
return self.order
+ def get_ci_loop(self):
+ return self.ci_loop
+
def __str__(self):
lines = split_text(self.description, LINE_LENGTH-6)
@@ -78,6 +81,8 @@ class Tier:
out += ("| Tier: " + self.name.ljust(LINE_LENGTH - 10) + "|\n")
out += ("+%s+\n" % ("=" * (LINE_LENGTH - 2)))
out += ("| Order: " + str(self.order).ljust(LINE_LENGTH - 10) + "|\n")
+ out += ("| CI Loop: " + str(self.ci_loop).ljust(LINE_LENGTH - 12) +
+ "|\n")
out += ("| Description:".ljust(LINE_LENGTH - 1) + "|\n")
for line in lines:
out += ("| " + line.ljust(LINE_LENGTH - 7) + " |\n")