mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 15:14:23 +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:
6
Makefile
6
Makefile
@@ -38,6 +38,10 @@ PIE_LDFLAGS=-pie
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
PYTEST := $(shell command -v pytest 2> /dev/null)
|
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.
|
# This is where we add new features as bitcoin adds them.
|
||||||
FEATURES :=
|
FEATURES :=
|
||||||
@@ -197,7 +201,7 @@ pytest: $(ALL_PROGRAMS)
|
|||||||
ifndef PYTEST
|
ifndef PYTEST
|
||||||
PYTHONPATH=contrib/pylightning:$$PYTHONPATH DEVELOPER=$(DEVELOPER) python3 tests/test_lightningd.py -f
|
PYTHONPATH=contrib/pylightning:$$PYTHONPATH DEVELOPER=$(DEVELOPER) python3 tests/test_lightningd.py -f
|
||||||
else
|
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
|
endif
|
||||||
|
|
||||||
# Keep includes in alpha order.
|
# Keep includes in alpha order.
|
||||||
|
|||||||
Reference in New Issue
Block a user