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 "Make SFC test a python call to main()"
[functest.git]
/
functest
/
ci
/
tier_handler.py
diff --git
a/functest/ci/tier_handler.py
b/functest/ci/tier_handler.py
index
1eadfba
..
6b4864b
100644
(file)
--- a/
functest/ci/tier_handler.py
+++ b/
functest/ci/tier_handler.py
@@
-28,7
+28,7
@@
def split_text(text, max_len):
return lines
return lines
-class Tier:
+class Tier
(object)
:
def __init__(self, name, order, ci_loop, description=""):
self.tests_array = []
def __init__(self, name, order, ci_loop, description=""):
self.tests_array = []
@@
-102,14
+102,20
@@
class Tier:
return out
return out
-class TestCase:
+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.name = name
self.dependency = dependency
- self.description = description
self.criteria = criteria
self.blocking = blocking
self.criteria = criteria
self.blocking = blocking
+ self.clean_flag = clean_flag
+ self.description = description
@staticmethod
def is_none(item):
@staticmethod
def is_none(item):
@@
-138,6
+144,9
@@
class TestCase:
def is_blocking(self):
return self.blocking
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)
def __str__(self):
lines = split_text(self.description, LINE_LENGTH - 6)
@@
-160,7
+169,7
@@
class TestCase:
return out
return out
-class Dependency:
+class Dependency
(object)
:
def __init__(self, installer, scenario):
self.installer = installer
def __init__(self, installer, scenario):
self.installer = installer