bug fix download_images.sh 09/40109/1
authorMorgan Richomme <morgan.richomme@orange.com>
Thu, 24 Aug 2017 14:54:42 +0000 (16:54 +0200)
committerMorgan Richomme <morgan.richomme@orange.com>
Thu, 24 Aug 2017 14:54:42 +0000 (16:54 +0200)
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 <morgan.richomme@orange.com>
functest/ci/download_images.sh

index 86f37a3..88474d3 100644 (file)
@@ -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 $?