diff options
author | Cédric Ollivier <cedric.ollivier@orange.com> | 2018-02-09 10:20:09 +0100 |
---|---|---|
committer | Cédric Ollivier <cedric.ollivier@orange.com> | 2018-02-09 16:24:11 +0100 |
commit | 1358b3c96371c48f16ad7691bb37499229f1c373 (patch) | |
tree | 66cf979367b776067dc0339ac628e89f5be98b93 /functest/core/feature.py | |
parent | e4e78c6e30132c17266648e8f212694e4f7fc695 (diff) |
Unlink feature from constants
Saving results dir as class attribute seems better in the context of
xtesting.
Change-Id: If40303d07d3be9bdc09d990f560cbeda429fd642
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
Diffstat (limited to 'functest/core/feature.py')
-rw-r--r-- | functest/core/feature.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/functest/core/feature.py b/functest/core/feature.py index 3200dad8..65fd5a08 100644 --- a/functest/core/feature.py +++ b/functest/core/feature.py @@ -18,7 +18,6 @@ import subprocess import time import functest.core.testcase as base -from functest.utils.constants import CONST __author__ = ("Serena Feng <feng.xiaowei@zte.com.cn>, " "Cedric Ollivier <cedric.ollivier@orange.com>") @@ -28,11 +27,11 @@ class Feature(base.TestCase): """Base model for single feature.""" __logger = logging.getLogger(__name__) + dir_results = "/home/opnfv/functest/results" def __init__(self, **kwargs): super(Feature, self).__init__(**kwargs) - self.result_file = "{}/{}.log".format( - CONST.__getattribute__('dir_results'), self.case_name) + self.result_file = "{}/{}.log".format(self.dir_results, self.case_name) try: module = kwargs['run']['module'] self.logger = logging.getLogger(module) |