Code Review
/
functest.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Merge "Define create_snapshot() and clean() in TestCase"
[functest.git]
/
functest
/
ci
/
tier_handler.py
diff --git
a/functest/ci/tier_handler.py
b/functest/ci/tier_handler.py
old mode 100755
(executable)
new mode 100644
(file)
index
127986b
..
4f2f14e
--- a/
functest/ci/tier_handler.py
+++ b/
functest/ci/tier_handler.py
@@
-104,12
+104,18
@@
class Tier(object):
class TestCase(object):
class TestCase(object):
- def __init__(self, name, dependency, criteria, blocking, description=""):
+ def __init__(self, name,
+ enabled,
+ dependency,
+ criteria,
+ blocking,
+ description=""):
self.name = name
self.name = name
+ self.enabled = enabled
self.dependency = dependency
self.dependency = dependency
- self.description = description
self.criteria = criteria
self.blocking = blocking
self.criteria = criteria
self.blocking = blocking
+ self.description = description
@staticmethod
def is_none(item):
@staticmethod
def is_none(item):
@@
-132,6
+138,9
@@
class TestCase(object):
def get_name(self):
return self.name
def get_name(self):
return self.name
+ def is_enabled(self):
+ return self.enabled
+
def get_criteria(self):
return self.criteria
def get_criteria(self):
return self.criteria
@@
-149,7
+158,7
@@
class TestCase(object):
for line in lines:
out += ("| " + line.ljust(LINE_LENGTH - 7) + " |\n")
out += ("| Criteria: " +
for line in lines:
out += ("| " + line.ljust(LINE_LENGTH - 7) + " |\n")
out += ("| Criteria: " +
- s
elf.criteria
.ljust(LINE_LENGTH - 14) + "|\n")
+ s
tr(self.criteria)
.ljust(LINE_LENGTH - 14) + "|\n")
out += ("| Dependencies:".ljust(LINE_LENGTH - 1) + "|\n")
installer = self.dependency.get_installer()
scenario = self.dependency.get_scenario()
out += ("| Dependencies:".ljust(LINE_LENGTH - 1) + "|\n")
installer = self.dependency.get_installer()
scenario = self.dependency.get_scenario()