Code Review
/
functest-xtesting.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
7040a71
)
Bigfix : function "download_and_add_image_on_glance"
author
boucherv
<valentin.boucher@orange.com>
Thu, 8 Oct 2015 07:26:36 +0000
(09:26 +0200)
committer
boucherv
<valentin.boucher@orange.com>
Thu, 8 Oct 2015 07:26:36 +0000
(09:26 +0200)
JIRA: FUNCTEST-38
Change-Id: I40bbc1f825d7cd5e24a37b0acd5a02b7ace6263c
Signed-off-by: boucherv <valentin.boucher@orange.com>
testcases/vIMS/CI/vIMS.py
patch
|
blob
|
history
diff --git
a/testcases/vIMS/CI/vIMS.py
b/testcases/vIMS/CI/vIMS.py
index
d2d10f3
..
90558b6
100644
(file)
--- 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)