From c23c513374db124ce4188f8db2367184569896d1 Mon Sep 17 00:00:00 2001 From: George Paraskevopoulos Date: Thu, 10 Nov 2016 15:07:09 +0200 Subject: Fix paths in SFC testcase configuration Change-Id: I9ff272065d8609bd40e02289c2013efd917aed9c Signed-off-by: George Paraskevopoulos --- functest/opnfv_tests/features/sfc/prepare_odl_sfc.py | 3 ++- functest/opnfv_tests/features/sfc/sfc.py | 7 +++---- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'functest/opnfv_tests/features') 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' -- cgit 1.2.3-korg