Commit c3f7a27a authored by Peter Parente's avatar Peter Parente

Fix exit status on test failure

parent 10ebacda
......@@ -80,12 +80,11 @@ tag-all: $(ALL_IMAGES:%=tag/%) ## tag all stacks
test/%: ## run a stack container, check for jupyter server liveliness
@-docker rm -f iut
docker run -d --name iut $(OWNER)/$(notdir $@)
@docker run -d --name iut $(OWNER)/$(notdir $@)
@for i in $$(seq 0 9); do \
sleep $$i; \
docker exec iut bash -c 'wget http://localhost:8888 -O- | grep -i jupyter'; \
if [[ $$? == 0 ]]; then break; fi; \
done
@docker rm -f iut
if [[ $$? == 0 ]]; then exit 0; fi; \
done ; exit 1
test-all: $(ALL_IMAGES:%=test/%) ## test all stacks
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment