summaryrefslogtreecommitdiffstats
path: root/test/functest/config.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/functest/config.py')
-rw-r--r--test/functest/config.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/functest/config.py b/test/functest/config.py
index 5280a89..45611c7 100644
--- a/test/functest/config.py
+++ b/test/functest/config.py
@@ -1,6 +1,7 @@
import yaml
import os
+import functest.utils.functest_constants as ft_constants
import functest.utils.functest_logger as ft_logger
import functest.utils.functest_utils as ft_utils
@@ -11,8 +12,9 @@ class CommonConfig(object):
"""
Common configuration parameters across testcases
"""
+
def __init__(self):
- self.repo_path = os.path.join(os.environ['repos_dir'], 'sdnvpn')
+ self.repo_path = ft_constants.SDNVPN_REPO_DIR
self.config_file = os.path.join(self.repo_path,
'test/functest/config.yaml')
self.keyfile_path = os.path.join(self.repo_path,
@@ -37,6 +39,7 @@ class TestcaseConfig(object):
Configuration for a testcase.
Parse config.yaml into a dict and create an object out of it.
"""
+
def __init__(self, testcase):
common_config = CommonConfig()
test_config = None