]> xenbits.xensource.com Git - qemu-xen.git/commitdiff
docker: report hint when docker.py check fails
authorAlex Bennée <alex.bennee@linaro.org>
Thu, 12 Jul 2018 13:36:18 +0000 (14:36 +0100)
committerAlex Bennée <alex.bennee@linaro.org>
Tue, 24 Jul 2018 10:45:25 +0000 (11:45 +0100)
When a check fails we currently just report why we failed. This is not
totally helpful to people who want to boot-strap a new image. Report a
hint as to why it failed.

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Suggested-by: Fam Zheng <famz@redhat.com>
tests/docker/Makefile.include

index 05afeb64a75e4143d81424458bf50dd094a92513..1aaa7957436275ad8a01eb3417c2022cd2d4b2f6 100644 (file)
@@ -73,7 +73,8 @@ docker-binfmt-image-debian-%: $(DOCKER_FILES_DIR)/debian-bootstrap.docker
                        $(if $(EXECUTABLE),--include-executable=$(EXECUTABLE)), \
                        "BUILD","binfmt debian-$* (debootstrapped)"),           \
                $(call quiet-command,                                           \
-                       $(DOCKER_SCRIPT) check --quiet qemu:debian-$* $<,       \
+                       $(DOCKER_SCRIPT) check --quiet qemu:debian-$* $< ||     \
+                       { echo "You will need to build $(EXECUTABLE)"; exit 1;},\
                        "CHECK", "debian-$* exists"))
 
 endif