ci/download_images.sh: Reduce wget dot reporting 79/53479/2
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Sun, 11 Mar 2018 22:34:57 +0000 (23:34 +0100)
committerCédric Ollivier <cedric.ollivier@orange.com>
Mon, 20 Aug 2018 15:21:57 +0000 (17:21 +0200)
Downloading large images outputs a lot of useless dots to show
progress. Switch to 1M per dot (from 1K).

Change-Id: I00e3d09ef28e7722798eeadc27649a96398aac32
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
functest/ci/download_images.sh

index b762697..b4abc53 100644 (file)
@@ -3,6 +3,7 @@
 set -ex
 
 wget_opts="-N --tries=1 --connect-timeout=30"
+[ -t 1 ] || wget_opts="${wget_opts} --progress=dot:giga"
 
 cat << EOF  | wget ${wget_opts} -i - -P ${1:-/home/opnfv/functest/images}
 http://download.cirros-cloud.net/0.4.0/cirros-0.4.0-x86_64-disk.img