aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAlex Bennée <alex.bennee@linaro.org>2018-06-12 21:29:40 +0100
committerAlex Bennée <alex.bennee@linaro.org>2018-06-20 22:13:39 +0100
commit5499fa9e449b9620b72e670af4bedbc8590c9b11 (patch)
tree8b9e45cb035fb9d4e38a1fb9e235652e3e78dd34 /tests
parent7b882245f48dca6e1cf9087b24e41275793be88f (diff)
downloadqemu-5499fa9e449b9620b72e670af4bedbc8590c9b11.zip
qemu-5499fa9e449b9620b72e670af4bedbc8590c9b11.tar.gz
qemu-5499fa9e449b9620b72e670af4bedbc8590c9b11.tar.bz2
tests/docker/Makefile.include: only force SID to NOCACHE if old
Now we can check the age of a docker image we can be a little more intelligent about re-building Sid images and only force NOCACHE if it is "old". Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/docker/Makefile.include6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/docker/Makefile.include b/tests/docker/Makefile.include
index c0f0950..91d9665 100644
--- a/tests/docker/Makefile.include
+++ b/tests/docker/Makefile.include
@@ -75,8 +75,14 @@ docker-image-debian-win64-cross: docker-image-debian8-mxe
# force a re-build of the base image if we ever need to build one of
# its children.
ifndef SKIP_DOCKER_BUILD
+ifeq ($(HAVE_USER_DOCKER),y)
+SID_AGE=$(shell $(DOCKER_SCRIPT) check --checktype=age --olderthan=180 --quiet qemu:debian-sid)
+ifeq ($(SID_AGE),)
+else
docker-image-debian-sid: NOCACHE=1
endif
+endif
+endif
docker-image-debian-alpha-cross: docker-image-debian-sid
docker-image-debian-hppa-cross: docker-image-debian-sid