summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCedric Ollivier <cedric.ollivier@orange.com>2018-02-09 16:12:01 +0000
committerGerrit Code Review <gerrit@opnfv.org>2018-02-09 16:12:01 +0000
commit23d94834ee5aca5d184bfa152e5275d7a50a3f8a (patch)
tree249d44bce9437abe954679249f2a77b1f7aac154
parent81775c2aae62f1f96a54c27eed59cea9f9722de9 (diff)
parent1358b3c96371c48f16ad7691bb37499229f1c373 (diff)
Merge "Unlink feature from constants"
-rw-r--r--functest/core/feature.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/functest/core/feature.py b/functest/core/feature.py
index 3200dad85..65fd5a084 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)