]> granicus.if.org Git - libvpx/commitdiff
libs.mk/stress.sh,curl: set --retry to 1
authorJames Zern <jzern@google.com>
Thu, 22 Dec 2016 13:20:55 +0000 (08:20 -0500)
committerJames Zern <jzern@google.com>
Thu, 22 Dec 2016 13:29:15 +0000 (08:29 -0500)
provide some resilience for transient errors

Change-Id: I8db3d4eb5ef3cccc235a8c4c0052199c0ce23a27

libs.mk
test/stress.sh

diff --git a/libs.mk b/libs.mk
index c98d785cc62e68bd4119f3922067bfe87e22b9c2..e0a2cc097de2f7c3cab769e7edb30d93349e3ba3 100644 (file)
--- a/libs.mk
+++ b/libs.mk
@@ -405,7 +405,7 @@ CLEAN-OBJS += libvpx_test_srcs.txt
 $(LIBVPX_TEST_DATA): $(SRC_PATH_BARE)/test/test-data.sha1
        @echo "    [DOWNLOAD] $@"
        $(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)
        $(qexec)[ -x "$$(which sha1sum)" ] && sha1sum=sha1sum;\
index 1426194a58b13f6d7b295417e5b2f6e3113e036a..952382476404b875619992a9058d6ad54a543ff6 100755 (executable)
@@ -32,7 +32,7 @@ download_and_check_file() {
 
   # Download the file using curl. Trap to insure non partial file.
   (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.
   if [ -n "${sha1sum}" ]; then