mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 01:43:36 +01:00
pytest: Use the pytest-timeout plugin to kill tasks
This will kill a test that was running for 550 seconds, so that we get a traceback before the travis inactivity timeout of 600 seconds kicks in. The traceback should show us which test got stuck and where it got stuck. Signed-off-by: Christian Decker <@cdecker>
This commit is contained in:
parent
f520052b95
commit
c3d2caafa2
4
Makefile
4
Makefile
@ -38,7 +38,9 @@ ifeq ($(COMPAT),1)
|
||||
COMPAT_CFLAGS=-DCOMPAT_V052=1 -DCOMPAT_V060=1 -DCOMPAT_V061=1
|
||||
endif
|
||||
|
||||
PYTEST_OPTS := -v
|
||||
# Timeout shortly before the 600 second travis silence timeout
|
||||
# (method=thread to support xdist)
|
||||
PYTEST_OPTS := -v --timeout=550 --timeout_method=thread
|
||||
|
||||
# This is where we add new features as bitcoin adds them.
|
||||
FEATURES :=
|
||||
|
Loading…
Reference in New Issue
Block a user