From a62ed36ae05c7ca64c3d4aba2702820e268fc8f1 Mon Sep 17 00:00:00 2001 From: Cédric Ollivier Date: Fri, 9 Feb 2018 16:22:36 +0100 Subject: Unlink robotframework from constants MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Ic2c6c84c3824ec3fa208824ae67f1769d4e18c4f Signed-off-by: Cédric Ollivier --- functest/core/robotframework.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'functest/core') diff --git a/functest/core/robotframework.py b/functest/core/robotframework.py index ccfa26b7..54574a68 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 " @@ -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) -- cgit 1.2.3-korg