aboutsummaryrefslogtreecommitdiff
path: root/tests/docker
diff options
context:
space:
mode:
authorSascha Silbe <silbe@linux.vnet.ibm.com>2016-09-06 22:05:48 +0200
committerFam Zheng <famz@redhat.com>2016-09-08 19:56:34 +0800
commita351b4b06e92e0ebe4601a3e69483f53c8a5fa25 (patch)
tree7777909de6ad465a619fbade157009b7765b8fd9 /tests/docker
parent341edc0c47eb0c27bfe530c064b123e0c00ae2be (diff)
downloadqemu-a351b4b06e92e0ebe4601a3e69483f53c8a5fa25.zip
qemu-a351b4b06e92e0ebe4601a3e69483f53c8a5fa25.tar.gz
qemu-a351b4b06e92e0ebe4601a3e69483f53c8a5fa25.tar.bz2
docker: print warning if EXECUTABLE is not set when building debootstrap image
Building the debian-debootstrap image will usually fail if EXECUTABLE isn't set (when using the Makefile). Warn the user in this case so they know why it's failing. Signed-off-by: Sascha Silbe <silbe@linux.vnet.ibm.com> Message-Id: <1473192351-601-6-git-send-email-silbe@linux.vnet.ibm.com> Signed-off-by: Fam Zheng <famz@redhat.com>
Diffstat (limited to 'tests/docker')
-rw-r--r--tests/docker/Makefile.include3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/docker/Makefile.include b/tests/docker/Makefile.include
index 1b20db0..19d4cc7 100644
--- a/tests/docker/Makefile.include
+++ b/tests/docker/Makefile.include
@@ -44,6 +44,9 @@ docker-image: ${DOCKER_TARGETS}
# General rule for building docker images
docker-image-%: $(DOCKER_FILES_DIR)/%.docker
+ @if test "$@" = docker-image-debian-bootstrap -a -z "$(EXECUTABLE)"; then \
+ echo WARNING: EXECUTABLE is not set, debootstrap may fail. 2>&1 ; \
+ fi
$(call quiet-command,\
$(SRC_PATH)/tests/docker/docker.py build qemu:$* $< \
$(if $V,,--quiet) $(if $(NOCACHE),--no-cache) \