libs.mk/stress.sh,curl: set --retry to 1
provide some resilience for transient errors Change-Id: I8db3d4eb5ef3cccc235a8c4c0052199c0ce23a27
This commit is contained in:
parent
e7c453b613
commit
90ceaba3e4
2
libs.mk
2
libs.mk
@ -405,7 +405,7 @@ CLEAN-OBJS += libvpx_test_srcs.txt
|
|||||||
$(LIBVPX_TEST_DATA): $(SRC_PATH_BARE)/test/test-data.sha1
|
$(LIBVPX_TEST_DATA): $(SRC_PATH_BARE)/test/test-data.sha1
|
||||||
@echo " [DOWNLOAD] $@"
|
@echo " [DOWNLOAD] $@"
|
||||||
$(qexec)trap 'rm -f $@' INT TERM &&\
|
$(qexec)trap 'rm -f $@' INT TERM &&\
|
||||||
curl -L -o $@ $(call libvpx_test_data_url,$(@F))
|
curl --retry 1 -L -o $@ $(call libvpx_test_data_url,$(@F))
|
||||||
|
|
||||||
testdata:: $(LIBVPX_TEST_DATA)
|
testdata:: $(LIBVPX_TEST_DATA)
|
||||||
$(qexec)[ -x "$$(which sha1sum)" ] && sha1sum=sha1sum;\
|
$(qexec)[ -x "$$(which sha1sum)" ] && sha1sum=sha1sum;\
|
||||||
|
@ -32,7 +32,7 @@ download_and_check_file() {
|
|||||||
|
|
||||||
# Download the file using curl. Trap to insure non partial file.
|
# Download the file using curl. Trap to insure non partial file.
|
||||||
(trap "rm -f $1" INT TERM \
|
(trap "rm -f $1" INT TERM \
|
||||||
&& eval "curl -L -o $1 ${DATA_URL}${root} ${devnull}")
|
&& eval "curl --retry 1 -L -o $1 ${DATA_URL}${root} ${devnull}")
|
||||||
|
|
||||||
# Check the sha1 sum of the file.
|
# Check the sha1 sum of the file.
|
||||||
if [ -n "${sha1sum}" ]; then
|
if [ -n "${sha1sum}" ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user