summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthewLi <matthew.lijun@huawei.com>2016-06-01 06:39:40 -0400
committerMatthewLi <matthew.lijun@huawei.com>2016-06-01 06:39:40 -0400
commit7fa6864522dec3924cd5e8006964d18e934b35bf (patch)
treedc3c00083b32e590bd302f9f7b55ac2cf8cd81da
parentf670ac5d8572ed93811ad01a9d27142cba77de5d (diff)
bugfix for download image function return value
JIRA: BOTTLENECK-86 Change-Id: Ia76b833bdec7554468ce081d3d572e87cea2d9f7 Signed-off-by: MatthewLi <matthew.lijun@huawei.com>
-rwxr-xr-xtestsuites/rubbos/run_rubbos.py2
-rwxr-xr-xtestsuites/vstf/run_vstf.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/testsuites/rubbos/run_rubbos.py b/testsuites/rubbos/run_rubbos.py
index 18aeab6f..afe653fe 100755
--- a/testsuites/rubbos/run_rubbos.py
+++ b/testsuites/rubbos/run_rubbos.py
@@ -73,7 +73,7 @@ def _download_url(src_url, dest_dir):
with open(dest, 'wb') as f:
shutil.copyfileobj(response, f)
- return file_name
+ return dest
def rubbos_stack_satisfy(name="bottlenecks_rubbos_stack", status="CREATE_COMPLETE"):
diff --git a/testsuites/vstf/run_vstf.py b/testsuites/vstf/run_vstf.py
index 4ea56661..15292646 100755
--- a/testsuites/vstf/run_vstf.py
+++ b/testsuites/vstf/run_vstf.py
@@ -72,7 +72,7 @@ def _download_url(src_url, dest_dir):
with open(dest, 'wb') as f:
shutil.copyfileobj(response, f)
- return file_name
+ return dest
def vstf_stack_satisfy(name="bottlenecks_vstf_stack", status="CREATE_COMPLETE"):
heat = _get_heat_client()