aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>2018-03-11 23:34:57 +0100
committerCédric Ollivier <cedric.ollivier@orange.com>2018-08-20 17:21:57 +0200
commit734347cf09463fbfef7c8eab6484f2487a2609f9 (patch)
treec32257c6818f49d50f06c7a508a66fbf4fa0c785
parent69f0b2665b397e5128bf7a83541d3567c4834af3 (diff)
ci/download_images.sh: Reduce wget dot reporting
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>
-rw-r--r--functest/ci/download_images.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/functest/ci/download_images.sh b/functest/ci/download_images.sh
index b7626972e..b4abc532e 100644
--- a/functest/ci/download_images.sh
+++ b/functest/ci/download_images.sh
@@ -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