pytest: Allow test parallelism to be configured via env var

Signed-off-by: Christian Decker <decker.christian@gmail.com>
This commit is contained in:
Christian Decker 2018-05-18 09:12:05 -04:00 committed by Rusty Russell
parent dcbd27e7cf
commit e117d25c1f

View File

@ -200,6 +200,10 @@ ifneq ($(TEST_GROUP_COUNT),)
PYTEST_OPTS += --test-group=$(TEST_GROUP) --test-group-count=$(TEST_GROUP_COUNT)
endif
ifneq ($(PYTEST_PAR),)
PYTEST_OPTS += -n=$(PYTEST_PAR)
endif
check:
$(MAKE) installcheck
$(MAKE) pytest