From: Cédric Ollivier Date: Fri, 9 Feb 2018 15:22:36 +0000 (+0100) Subject: Unlink robotframework from constants X-Git-Tag: opnfv-6.0.0~176 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F59%2F51959%2F3;p=functest.git Unlink robotframework from constants Change-Id: Ic2c6c84c3824ec3fa208824ae67f1769d4e18c4f Signed-off-by: Cédric Ollivier --- 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 " @@ -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)