mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 15:14:23 +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:
committed by
Rusty Russell
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
|
COMPAT_CFLAGS=-DCOMPAT_V052=1 -DCOMPAT_V060=1 -DCOMPAT_V061=1
|
||||||
endif
|
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.
|
# This is where we add new features as bitcoin adds them.
|
||||||
FEATURES :=
|
FEATURES :=
|
||||||
|
|||||||
Reference in New Issue
Block a user