From: Morgan Richomme Date: Thu, 24 Aug 2017 14:54:42 +0000 (+0200) Subject: bug fix download_images.sh X-Git-Tag: opnfv-5.0.RC1~157 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=bc25ad7ad1a9299a07aca77bd9207342711f4bd9;p=functest.git bug fix download_images.sh when xz the downloaded file, if the uncompressed target file already exists it exits with status 1 and breaks the gate Change-Id: Ie97ff34e6522af48c799e7c8c97dc3310222e683 Signed-off-by: Morgan Richomme --- diff --git a/functest/ci/download_images.sh b/functest/ci/download_images.sh index 86f37a3f5..88474d3a7 100644 --- a/functest/ci/download_images.sh +++ b/functest/ci/download_images.sh @@ -20,6 +20,6 @@ https://cloud-images.ubuntu.com/releases/14.04/release/ubuntu-14.04-server-cloud http://cloud.centos.org/altarch/7/images/aarch64/CentOS-7-aarch64-GenericCloud.qcow2.xz EOF -xz --decompress ${1:-/home/opnfv/functest/images}/CentOS-7-aarch64-GenericCloud.qcow2.xz +xz --decompress --force ${1:-/home/opnfv/functest/images}/CentOS-7-aarch64-GenericCloud.qcow2.xz exit $?