aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2018-04-23 05:36:09 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2018-04-23 05:37:47 +0200
commitf182b1a2a1127599da0d61af4f7ae818455ffc42 (patch)
tree6b3ba26d141f5c5bb43c96805f014cefefd6676d /src
parentversion: bump snapshot (diff)
downloadwireguard-monolithic-historical-f182b1a2a1127599da0d61af4f7ae818455ffc42.tar.xz
wireguard-monolithic-historical-f182b1a2a1127599da0d61af4f7ae818455ffc42.zip
qemu: retry on 404 in wget for kernel.org race
Diffstat (limited to 'src')
-rw-r--r--src/tests/qemu/Makefile4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/tests/qemu/Makefile b/src/tests/qemu/Makefile
index 957378d..808e20d 100644
--- a/src/tests/qemu/Makefile
+++ b/src/tests/qemu/Makefile
@@ -20,8 +20,6 @@ DISTFILES_PATH ?= $(PWD)/distfiles
DEBUG_KERNEL ?= no
NR_CPUS ?= 4
-DOWNLOAD := wget -O
-# DOWNLOAD := curl -f -o
MIRROR := https://download.wireguard.com/qemu-test/distfiles/
WIREGUARD_SOURCES := $(wildcard ../../*.c ../../*.h ../../selftest/*.h ../../crypto/*.c ../../crypto/*.h ../../crypto/*.S ../../compat/*.h)
@@ -41,7 +39,7 @@ endef
define file_download =
$(DISTFILES_PATH)/$(1):
mkdir -p $(DISTFILES_PATH)
- flock -x $$@.lock -c '[ -f $$@ ] && exit 0; $(DOWNLOAD) $$@ $(MIRROR)$(1) || $(DOWNLOAD) $$@ $(2)$(1) || rm -f $$@'
+ flock -x $$@.lock -c '[ -f $$@ ] && exit 0; wget -O $$@ $(MIRROR)$(1) || wget -t inf --retry-on-http-error=404 -O $$@ $(2)$(1) || rm -f $$@'
endef
ifeq ($(findstring -rc,$(KERNEL_VERSION)),)