diff options
author | Cedric Ollivier <ollivier.cedric@gmail.com> | 2017-03-28 08:12:15 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-03-28 08:12:15 +0000 |
commit | 514c97b036cf968e03e600a4761757448bef0a0a (patch) | |
tree | 1c26ce72ed668b8e183da925d7b5bced89445e22 /functest/core/feature_base.py | |
parent | 5af67bcca589c275b73fe5e4bca9bea5871948aa (diff) | |
parent | 407d27585f109e3381bb49041abc49a14b7b5bfe (diff) |
Merge "Switch TestcaseBase to TestCase"
Diffstat (limited to 'functest/core/feature_base.py')
-rw-r--r-- | functest/core/feature_base.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/functest/core/feature_base.py b/functest/core/feature_base.py index 2bd1ec83..9224d6c9 100644 --- a/functest/core/feature_base.py +++ b/functest/core/feature_base.py @@ -6,7 +6,7 @@ import functest.utils.functest_logger as ft_logger from functest.utils.constants import CONST -class FeatureBase(base.TestcaseBase): +class FeatureBase(base.TestCase): def __init__(self, project='functest', case='', repo='', cmd=''): super(FeatureBase, self).__init__() @@ -26,7 +26,7 @@ class FeatureBase(base.TestcaseBase): self.parse_results(ret) self.log_results() self.logger.info("Test result is stored in '%s'" % self.result_file) - return base.TestcaseBase.EX_OK + return base.TestCase.EX_OK def execute(self): ''' @@ -42,13 +42,13 @@ class FeatureBase(base.TestcaseBase): pass def parse_results(self, ret): - exit_code = base.TestcaseBase.EX_OK + exit_code = base.TestCase.EX_OK if ret == 0: self.logger.info("{} OK".format(self.project_name)) self.criteria = 'PASS' else: self.logger.info("{} FAILED".format(self.project_name)) - exit_code = base.TestcaseBase.EX_RUN_ERROR + exit_code = base.TestCase.EX_RUN_ERROR self.criteria = "FAIL" return exit_code |