On 06/29/2018 11:11 AM, Alex Bennée wrote:> Philippe Mathieu-Daudé <f4...@amsat.org> writes: > >> We can still run any test in Travis. > > > I don't know about this one. The travis job isn't a fill in for real > travis, but a way to work through the matrix. I don't think it needs to > be restricted to any particular image.
I had forgotten the context of this one. IIRC, at some point the time expensive "make docker-test" try to run the 'travis' script in all docker images available, and failed with the Debian ones. I now tested again with a single image and it did not fail. As said Fam in the other reply to this tread, the script is protected by the 'requires pyyaml' which isn't installed on the Debian images: $ make docker-travis@debian-armhf-cross BUILD debian9 BUILD debian-armhf-cross COPY RUNNER RUN travis in qemu:debian-armhf-cross Prerequisite 'pyyaml' not present, skip $ echo $? 0 Anyway you are correct, this test isn't mean for a Travis builder but for a developer to check what matrix will be run on Travis, so don't need any image restriction. (patch dropped). Regards, Phil. >> >> Signed-off-by: Philippe Mathieu-Daudé <f4...@amsat.org> >> --- >> tests/docker/Makefile.include | 10 ++++++++-- >> 1 file changed, 8 insertions(+), 2 deletions(-) >> >> diff --git a/tests/docker/Makefile.include b/tests/docker/Makefile.include >> index 91d9665517..7d9d568eee 100644 >> --- a/tests/docker/Makefile.include >> +++ b/tests/docker/Makefile.include >> @@ -99,11 +99,17 @@ docker-image-tricore-cross: docker-image-debian9 >> >> # Expand all the pre-requistes for each docker image and test combination >> $(foreach i,$(DOCKER_IMAGES) $(DOCKER_DEPRECATED_IMAGES), \ >> - $(foreach t,$(DOCKER_TESTS) $(DOCKER_TOOLS), \ >> + $(foreach t,$(DOCKER_TESTS), \ >> $(eval .PHONY: docker-$t@$i) \ >> $(eval docker-$t@$i: docker-image-$i docker-run-$t@$i) \ >> + $(eval docker-test: docker-$t@$i) \ >> ) \ >> - $(foreach t,$(DOCKER_TESTS), \ >> +) >> +# we only run Travis tests on the Travis image >> +$(foreach i,travis, \ >> + $(foreach t,$(DOCKER_TOOLS), \ >> + $(eval .PHONY: docker-$t@$i) \ >> + $(eval docker-$t@$i: docker-image-$i docker-run-$t@$i) \ >> $(eval docker-test: docker-$t@$i) \ >> ) \ >> ) > > > -- > Alex Bennée >