From e0a0bccf7172b8cdd3e0ac2af7c2736b89ef5f75 Mon Sep 17 00:00:00 2001 From: Dimitrios Markou Date: Fri, 1 Jun 2018 16:09:47 +0300 Subject: [Bug Fix] Use correct image for the Quagga instance In testcase_3 the Quagga image is downloaded from the opnfv.artifacts repository to the /home/opnfv/functest/data directory. But the testcase_3 after that tries to find the image in the /home/opnfv/functest/images directory. This results in using a wrong image Jira: SDNVPN-213 Change-Id: I99539fc9a7a2d016a97ed51fca0cde81f82b3911 Signed-off-by: Dimitrios Markou --- sdnvpn/test/functest/testcase_3.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sdnvpn/test/functest/testcase_3.py') diff --git a/sdnvpn/test/functest/testcase_3.py b/sdnvpn/test/functest/testcase_3.py index 373e5a8..95023c6 100644 --- a/sdnvpn/test/functest/testcase_3.py +++ b/sdnvpn/test/functest/testcase_3.py @@ -140,10 +140,12 @@ def main(): # Taken from the sfc tests if not os.path.isfile(COMMON_CONFIG.ubuntu_image_path): logger.info("Downloading image") + image_dest_path = '/'.join( + COMMON_CONFIG.ubuntu_image_path.split('/')[:-1]) os_utils.download_url( "http://artifacts.opnfv.org/sdnvpn/" "ubuntu-16.04-server-cloudimg-amd64-disk1.img", - "/home/opnfv/functest/data/") + image_dest_path) else: logger.info("Using old image") -- cgit 1.2.3-korg