summaryrefslogtreecommitdiffstats
path: root/dovetail/report.py
diff options
context:
space:
mode:
Diffstat (limited to 'dovetail/report.py')
-rw-r--r--dovetail/report.py25
1 files changed, 14 insertions, 11 deletions
diff --git a/dovetail/report.py b/dovetail/report.py
index 127c191d..a828d4f3 100644
--- a/dovetail/report.py
+++ b/dovetail/report.py
@@ -30,8 +30,8 @@ class Report:
results = {'functest': {}, 'yardstick': {}}
- @classmethod
- def check_result(cls, testcase, db_result):
+ @staticmethod
+ def check_result(testcase, db_result):
checker = CheckerFactory.create(testcase.script_type())
checker.check(testcase, db_result)
@@ -92,8 +92,8 @@ class Report:
return rpt_text
# save to disk as default
- @classmethod
- def save(cls, report):
+ @staticmethod
+ def save(report):
report_file_name = dovetail_config['report_file']
try:
with open(os.path.join(dovetail_config['result_dir'],
@@ -127,8 +127,8 @@ class Report:
class CrawlerFactory:
- @classmethod
- def create(cls, type):
+ @staticmethod
+ def create(type):
if type == 'functest':
return FunctestCrawler()
@@ -234,8 +234,8 @@ class YardstickCrawler:
class CheckerFactory:
- @classmethod
- def create(cls, type):
+ @staticmethod
+ def create(type):
if type == 'functest':
return FunctestChecker()
@@ -247,13 +247,15 @@ class CheckerFactory:
class ResultChecker:
- def check(cls):
+ @staticmethod
+ def check():
return 'PASS'
class FunctestChecker:
- def check(cls, testcase, db_result):
+ @staticmethod
+ def check(testcase, db_result):
sub_testcase_list = testcase.sub_testcase()
if not db_result:
@@ -286,7 +288,8 @@ class FunctestChecker:
class YardstickChecker:
- def check(cls, testcase, result):
+ @staticmethod
+ def check(testcase, result):
if not result:
testcase.passed(False)
else: