diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-04-23 05:36:09 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-04-23 05:37:47 +0200 |
commit | b0533ee2335f15b892581202398762cf5c4aa2c3 (patch) | |
tree | 535d67e4b31ce31eef96813e52eaf3450792e469 /src/tests/qemu | |
parent | 38c92f610a8c7da73bee9066d98d678877feae37 (diff) |
qemu: retry on 404 in wget for kernel.org race
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src/tests/qemu')
-rw-r--r-- | src/tests/qemu/Makefile | 4 |
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)),) |