Created
September 21, 2018 04:47
-
-
Save polvalente/c25e0405d2cf66a067fd3b30ef7f5b67 to your computer and use it in GitHub Desktop.
Make test with retry
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TEST_COUNT ?= 4 | |
test: | |
ifeq ($(TEST_COUNT), 2) | |
exit 0; | |
else | |
exit 1; | |
endif | |
retry-test: | |
ifeq ($(TEST_COUNT),-1) | |
exit 1; | |
else | |
@echo "Running test $(TEST_COUNT)" | |
@make test || TEST_COUNT=$(shell echo ${TEST_COUNT}-1 | bc) make retry-test | |
endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No caso,
test
seria a sua rotina de teste automatizado de fato.