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 ...@@ -80,12 +80,11 @@ tag-all: $(ALL_IMAGES:%=tag/%) ## tag all stacks
test/%: ## run a stack container, check for jupyter server liveliness test/%: ## run a stack container, check for jupyter server liveliness
@-docker rm -f iut @-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 \ @for i in $$(seq 0 9); do \
sleep $$i; \ sleep $$i; \
docker exec iut bash -c 'wget http://localhost:8888 -O- | grep -i jupyter'; \ docker exec iut bash -c 'wget http://localhost:8888 -O- | grep -i jupyter'; \
if [[ $$? == 0 ]]; then break; fi; \ if [[ $$? == 0 ]]; then exit 0; fi; \
done done ; exit 1
@docker rm -f iut
test-all: $(ALL_IMAGES:%=test/%) ## test all stacks 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