summaryrefslogtreecommitdiffstats
path: root/dovetail/report.py
diff options
context:
space:
mode:
authorxudan <xudan16@huawei.com>2017-01-20 06:46:57 +0000
committerxudan <xudan16@huawei.com>2017-01-20 06:49:28 +0000
commit9f4ce551bacb18bf424b0164a82cafb954f4b7c4 (patch)
tree3978d9a69727956180850588ebe63c468768fc48 /dovetail/report.py
parentc2401cd1bf3898aebeef08ca699072b1dca683f0 (diff)
dovetail tool: use python new-style classes which inherit from object
JIRA: DOVETAIL-187 Change-Id: Id6fa50a3a3cec7a18d27ca8feb383b53836a339b Signed-off-by: xudan <xudan16@huawei.com>
Diffstat (limited to 'dovetail/report.py')
-rw-r--r--dovetail/report.py20
1 files changed, 10 insertions, 10 deletions
diff --git a/dovetail/report.py b/dovetail/report.py
index 91a4ebd4..11e3c244 100644
--- a/dovetail/report.py
+++ b/dovetail/report.py
@@ -30,7 +30,7 @@ def get_pass_str(passed):
return 'FAIL'
-class Report:
+class Report(object):
results = {'functest': {}, 'yardstick': {}, 'shell': {}}
@@ -190,7 +190,7 @@ class Report:
return result
-class FunctestCrawler:
+class FunctestCrawler(object):
logger = None
@@ -261,7 +261,7 @@ class FunctestCrawler:
return None
-class YardstickCrawler:
+class YardstickCrawler(object):
logger = None
@@ -305,7 +305,7 @@ class YardstickCrawler:
return None
-class ShellCrawler:
+class ShellCrawler(object):
def __init__(self):
self.type = 'shell'
@@ -326,7 +326,7 @@ class ShellCrawler:
return None
-class CrawlerFactory:
+class CrawlerFactory(object):
CRAWLER_MAP = {'functest': FunctestCrawler,
'yardstick': YardstickCrawler,
@@ -340,14 +340,14 @@ class CrawlerFactory:
return None
-class ResultChecker:
+class ResultChecker(object):
@staticmethod
def check():
return 'PASS'
-class FunctestChecker:
+class FunctestChecker(object):
logger = None
@@ -387,7 +387,7 @@ class FunctestChecker:
testcase.passed(all_passed)
-class YardstickChecker:
+class YardstickChecker(object):
logger = None
@@ -405,7 +405,7 @@ class YardstickChecker:
return
-class ShellChecker:
+class ShellChecker(object):
@staticmethod
def check(testcase, result):
@@ -415,7 +415,7 @@ class ShellChecker:
testcase.passed(False)
-class CheckerFactory:
+class CheckerFactory(object):
CHECKER_MAP = {'functest': FunctestChecker,
'yardstick': YardstickChecker,