mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 09:54:16 +01:00
make: If running on travis allow 3 reruns of failed tests
This may mask a few flaky tests, but cuts down on the manual reruns. Signed-off-by: Christian Decker <decker.christian@gmail.com>
This commit is contained in:
parent
68a9951fb9
commit
da062df594
6
Makefile
6
Makefile
@ -38,6 +38,10 @@ PIE_LDFLAGS=-pie
|
||||
endif
|
||||
|
||||
PYTEST := $(shell command -v pytest 2> /dev/null)
|
||||
PYTEST_OPTS := -v -x
|
||||
ifeq ($(TRAVIS),true)
|
||||
PYTEST_OPTS += --reruns=3
|
||||
endif
|
||||
|
||||
# This is where we add new features as bitcoin adds them.
|
||||
FEATURES :=
|
||||
@ -197,7 +201,7 @@ pytest: $(ALL_PROGRAMS)
|
||||
ifndef PYTEST
|
||||
PYTHONPATH=contrib/pylightning:$$PYTHONPATH DEVELOPER=$(DEVELOPER) python3 tests/test_lightningd.py -f
|
||||
else
|
||||
PYTHONPATH=contrib/pylightning:$$PYTHONPATH TEST_DEBUG=1 DEVELOPER=$(DEVELOPER) $(PYTEST) -vx tests/test_lightningd.py --test-group=$(TEST_GROUP) --test-group-count=$(TEST_GROUP_COUNT)
|
||||
PYTHONPATH=contrib/pylightning:$$PYTHONPATH TEST_DEBUG=1 DEVELOPER=$(DEVELOPER) $(PYTEST) -vx tests/test_lightningd.py --test-group=$(TEST_GROUP) --test-group-count=$(TEST_GROUP_COUNT) $(PYTEST_OPTS)
|
||||
endif
|
||||
|
||||
# Keep includes in alpha order.
|
||||
|
Loading…
Reference in New Issue
Block a user