summaryrefslogtreecommitdiffstats
path: root/testcases/vIMS
diff options
context:
space:
mode:
authorboucherv <valentin.boucher@orange.com>2015-10-08 07:43:50 +0000
committerGerrit Code Review <gerrit@172.30.200.206>2015-10-08 07:43:50 +0000
commit85507d9ae3ca0bfc82c561e8202164a35e47e2c9 (patch)
tree9fba26eba29595e6c273a3bce957fbc1a39ffbff /testcases/vIMS
parentf6649b00f7c2cc640881be6c9136e02af28dec4b (diff)
parentdac50706ed7fc07c4dc2a2c1586df293e9887e26 (diff)
Merge "Bigfix : function "download_and_add_image_on_glance""
Diffstat (limited to 'testcases/vIMS')
-rw-r--r--testcases/vIMS/CI/vIMS.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/testcases/vIMS/CI/vIMS.py b/testcases/vIMS/CI/vIMS.py
index d2d10f345..90558b650 100644
--- a/testcases/vIMS/CI/vIMS.py
+++ b/testcases/vIMS/CI/vIMS.py
@@ -79,6 +79,8 @@ def pMsg(value):
def download_and_add_image_on_glance(glance, image_name, image_url):
dest_path = VIMS_DATA_DIR + "tmp/"
+ if not os.path.exists(dest_path):
+ os.makedirs(dest_path)
file_name = image_url.rsplit('/')[-1]
if not functest_utils.download_url(image_url, dest_path):
logger.error("Failed to download image %s" %file_name)