summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2018-02-09 16:22:36 +0100
committerCédric Ollivier <cedric.ollivier@orange.com>2018-02-09 20:50:04 +0100
commita62ed36ae05c7ca64c3d4aba2702820e268fc8f1 (patch)
treed49197891deedad2b3a9ce7ea4f5a427207120cc
parent0bead15943852cb018a83832e9a76c7e87c71ab7 (diff)
Unlink robotframework from constants
Change-Id: Ic2c6c84c3824ec3fa208824ae67f1769d4e18c4f Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
-rw-r--r--functest/core/robotframework.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/functest/core/robotframework.py b/functest/core/robotframework.py
index ccfa26b71..54574a683 100644
--- a/functest/core/robotframework.py
+++ b/functest/core/robotframework.py
@@ -22,7 +22,6 @@ from robot.utils.robottime import timestamp_to_secs
from six import StringIO
from functest.core import testcase
-from functest.utils import constants
__author__ = "Cedric Ollivier <cedric.ollivier@orange.com>"
@@ -54,10 +53,10 @@ class RobotFramework(testcase.TestCase):
"""RobotFramework runner."""
__logger = logging.getLogger(__name__)
+ dir_results = "/home/opnfv/functest/results"
def __init__(self, **kwargs):
- self.res_dir = os.path.join(
- constants.CONST.__getattribute__('dir_results'), 'robot')
+ self.res_dir = os.path.join(self.dir_results, 'robot')
self.xml_file = os.path.join(self.res_dir, 'output.xml')
super(RobotFramework, self).__init__(**kwargs)