aboutsummaryrefslogtreecommitdiffstats
path: root/functest
diff options
context:
space:
mode:
authorGeorge Paraskevopoulos <geopar@intracom-telecom.com>2016-11-10 15:07:09 +0200
committerGeorge Paraskevopoulos <geopar@intracom-telecom.com>2016-11-10 15:15:46 +0200
commitc23c513374db124ce4188f8db2367184569896d1 (patch)
tree0aba075abd3e3f16ce1039a8752bbf89c95b9d2a /functest
parentdfcd85351d55c49f1a49e11663f4a00b07220093 (diff)
Fix paths in SFC testcase configuration
Change-Id: I9ff272065d8609bd40e02289c2013efd917aed9c Signed-off-by: George Paraskevopoulos <geopar@intracom-telecom.com>
Diffstat (limited to 'functest')
-rwxr-xr-xfunctest/opnfv_tests/features/sfc/prepare_odl_sfc.py3
-rwxr-xr-xfunctest/opnfv_tests/features/sfc/sfc.py7
2 files changed, 5 insertions, 5 deletions
diff --git a/functest/opnfv_tests/features/sfc/prepare_odl_sfc.py b/functest/opnfv_tests/features/sfc/prepare_odl_sfc.py
index 3d700b8a..8ba287e9 100755
--- a/functest/opnfv_tests/features/sfc/prepare_odl_sfc.py
+++ b/functest/opnfv_tests/features/sfc/prepare_odl_sfc.py
@@ -33,7 +33,8 @@ except:
INSTALLER_IP = "10.20.0.2"
os.environ['ODL_SFC_LOG'] = "/home/opnfv/functest/results/odl-sfc.log"
-os.environ['ODL_SFC_DIR'] = FUNCTEST_REPO_DIR + "/opnfv_tests/features/sfc"
+os.environ['ODL_SFC_DIR'] = os.path.join(FUNCTEST_REPO_DIR,
+ "functest/opnfv_tests/features/sfc")
command = os.environ['ODL_SFC_DIR'] + ("/server_presetup_CI.bash | "
"tee -a ${ODL_SFC_LOG} "
diff --git a/functest/opnfv_tests/features/sfc/sfc.py b/functest/opnfv_tests/features/sfc/sfc.py
index 17ffef22..e5ae7dcb 100755
--- a/functest/opnfv_tests/features/sfc/sfc.py
+++ b/functest/opnfv_tests/features/sfc/sfc.py
@@ -24,8 +24,7 @@ logger = ft_logger.Logger("ODL_SFC").getLogger()
FUNCTEST_RESULTS_DIR = '/home/opnfv/functest/results/odl-sfc'
FUNCTEST_REPO = ft_utils.FUNCTEST_REPO
-REPO_PATH = os.environ['repos_dir'] + '/functest/'
-HOME = os.environ['HOME'] + "/"
+REPO_PATH = os.path.join(os.environ['repos_dir'], 'functest/')
CLIENT = "client"
SERVER = "server"
FLAVOR = "custom"
@@ -33,7 +32,7 @@ IMAGE_NAME = "sf_nsh_colorado"
IMAGE_FILENAME = "sf_nsh_colorado.qcow2"
IMAGE_FORMAT = "qcow2"
IMAGE_DIR = "/home/opnfv/functest/data"
-IMAGE_PATH = IMAGE_DIR + "/" + IMAGE_FILENAME
+IMAGE_PATH = os.path.join(IMAGE_DIR, IMAGE_FILENAME)
IMAGE_URL = "http://artifacts.opnfv.org/sfc/demo/" + IMAGE_FILENAME
# NEUTRON Private Network parameters
@@ -43,7 +42,7 @@ SUBNET_CIDR = "11.0.0.0/24"
ROUTER_NAME = "example-router"
SECGROUP_NAME = "example-sg"
SECGROUP_DESCR = "Example Security group"
-SFC_TEST_DIR = REPO_PATH + "/opnfv_tests/features/sfc/"
+SFC_TEST_DIR = os.path.join(REPO_PATH, "functest/opnfv_tests/features/sfc/")
TACKER_SCRIPT = SFC_TEST_DIR + "sfc_tacker.bash"
TACKER_CHANGECLASSI = SFC_TEST_DIR + "sfc_change_classi.bash"
ssh_options = '-q -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no'