Bugfix: load_image will move image file if image already exist in /home/opnfv/images 67/35867/1
authorchenjiankun <chenjiankun1@huawei.com>
Wed, 7 Jun 2017 12:33:31 +0000 (12:33 +0000)
committerchenjiankun <chenjiankun1@huawei.com>
Wed, 7 Jun 2017 12:33:31 +0000 (12:33 +0000)
JIRA: YARDSTICK-678

Currently if yardstick-image exist in /home/opnfv/images, load_image.sh
script will not build image, but this script will remove it. We should not
remove the image file which user offer.

Change-Id: I74ff6717606ff1dd9eacde4142e62d3923394baa
Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
tests/ci/load_images.sh

index 2e22b83..b1f925e 100755 (executable)
@@ -145,12 +145,6 @@ load_yardstick_image()
         exit 1
     fi
 
-    if [[ "$DEPLOY_SCENARIO" == *"-lxd-"* ]]; then
-        sudo rm -f -- "${RAW_IMAGE}"
-    else
-        sudo rm -f -- "${QCOW_IMAGE}"
-    fi
-
     echo "Glance image id: $GLANCE_IMAGE_ID"
 }