diff options
author | jose.lausuch <jose.lausuch@ericsson.com> | 2016-11-23 09:32:16 +0100 |
---|---|---|
committer | jose.lausuch <jose.lausuch@ericsson.com> | 2016-11-23 10:32:26 +0100 |
commit | ecec8d640a8ac1f2c82a63326073bb6baddb9b6f (patch) | |
tree | 0bcf568fca2b6f2fd434c477bad11a1bacd022fb /test/functest/config.py | |
parent | 5b2b4922740b2f189b1be2192d8e405fb9a535bb (diff) |
Adapt new environment variable after refactor
This patch changes the env variable
repos_dir to REPOS_DIR
https://gerrit.opnfv.org/gerrit/#/c/24619/
Change-Id: I55e17ee09395a976e79b8ee1abf045787009f52e
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
Diffstat (limited to 'test/functest/config.py')
-rw-r--r-- | test/functest/config.py | 5 |
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 |