Unlink robotframework from constants 59/51959/3
authorCédric Ollivier <cedric.ollivier@orange.com>
Fri, 9 Feb 2018 15:22:36 +0000 (16:22 +0100)
committerCédric Ollivier <cedric.ollivier@orange.com>
Fri, 9 Feb 2018 19:50:04 +0000 (20:50 +0100)
Change-Id: Ic2c6c84c3824ec3fa208824ae67f1769d4e18c4f
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
functest/core/robotframework.py

index ccfa26b..54574a6 100644 (file)
@@ -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)