wget less verbose

wget is too verbose in devstack logs [1] on image download.

Changing the progress bar style to giga, in order
to be less verbose.

http://logs.openstack.org/73/146573/2/check/
check-tempest-dsvm-full-juno/41ba988/logs/devstacklog.txt.gz#_2015-01-13_11_34_15_330

Change-Id: Ic5304893f4c97c50e7a2f29ad5cd77dba3d5a9dd
This commit is contained in:
Attila Fazekas 2015-01-13 14:01:26 +01:00
parent cc6dbee0a6
commit 057d6ae225

View File

@ -42,7 +42,7 @@ function upload_image {
if [[ $image_url != file* ]]; then if [[ $image_url != file* ]]; then
# Downloads the image (uec ami+akistyle), then extracts it. # Downloads the image (uec ami+akistyle), then extracts it.
if [[ ! -f $FILES/$image_fname || "$(stat -c "%s" $FILES/$image_fname)" = "0" ]]; then if [[ ! -f $FILES/$image_fname || "$(stat -c "%s" $FILES/$image_fname)" = "0" ]]; then
wget -c $image_url -O $FILES/$image_fname wget --progress=dot:giga -c $image_url -O $FILES/$image_fname
if [[ $? -ne 0 ]]; then if [[ $? -ne 0 ]]; then
echo "Not found: $image_url" echo "Not found: $image_url"
return return
@ -116,7 +116,7 @@ function upload_image {
if [[ $flat_url != file* ]]; then if [[ $flat_url != file* ]]; then
if [[ ! -f $FILES/$flat_fname || \ if [[ ! -f $FILES/$flat_fname || \
"$(stat -c "%s" $FILES/$flat_fname)" = "0" ]]; then "$(stat -c "%s" $FILES/$flat_fname)" = "0" ]]; then
wget -c $flat_url -O $FILES/$flat_fname wget --progress=dot:giga -c $flat_url -O $FILES/$flat_fname
fi fi
image="$FILES/${flat_fname}" image="$FILES/${flat_fname}"
else else