mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 01:43:36 +01:00
pytest: Do not set test-groups unless explicitly requested
Setting these options could fail the `pytest` target if `pytest-test-groups` is not installed. Fixes #1508 Signed-off-by: Christian Decker <decker.christian@gmail.com>
This commit is contained in:
parent
b79bb1dbe6
commit
e604891910
7
Makefile
7
Makefile
@ -196,9 +196,8 @@ include devtools/Makefile
|
||||
# Git doesn't maintain timestamps, so we only regen if git says we should.
|
||||
CHANGED_FROM_GIT = [ x"`git log $@ | head -n1`" != x"`git log $< | head -n1`" -o x"`git diff $<`" != x"" ]
|
||||
|
||||
ifeq ($(TEST_GROUP_COUNT),)
|
||||
TEST_GROUP=1
|
||||
TEST_GROUP_COUNT=1
|
||||
ifneq ($(TEST_GROUP_COUNT),)
|
||||
PYTEST_OPTS += --test-group=$(TEST_GROUP) --test-group-count=$(TEST_GROUP_COUNT)
|
||||
endif
|
||||
|
||||
check:
|
||||
@ -210,7 +209,7 @@ ifndef PYTEST
|
||||
@echo "py.test is required to run the integration tests, please install using 'pip3 install -r tests/requirements.txt'"
|
||||
exit 1
|
||||
else
|
||||
PYTHONPATH=contrib/pylightning:$$PYTHONPATH TEST_DEBUG=1 DEVELOPER=$(DEVELOPER) $(PYTEST) -vx tests/ --test-group=$(TEST_GROUP) --test-group-count=$(TEST_GROUP_COUNT) $(PYTEST_OPTS)
|
||||
PYTHONPATH=contrib/pylightning:$$PYTHONPATH TEST_DEBUG=1 DEVELOPER=$(DEVELOPER) $(PYTEST) tests/ $(PYTEST_OPTS)
|
||||
endif
|
||||
|
||||
# Keep includes in alpha order.
|
||||
|
Loading…
Reference in New Issue
Block a user