pytest: support simple subdaemon debugging.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2018-09-04 12:24:32 +09:30
committed by Christian Decker
parent 7b9341e762
commit 312209ad60
2 changed files with 6 additions and 2 deletions

View File

@@ -703,6 +703,8 @@ class NodeFactory(object):
if DEVELOPER:
daemon.opts["dev-fail-on-subdaemon-fail"] = None
daemon.env["LIGHTNINGD_DEV_MEMLEAK"] = "1"
if os.getenv("DEBUG_SUBD"):
daemon.opts["dev-debugger"] = os.getenv("DEBUG_SUBD")
if VALGRIND:
daemon.env["LIGHTNINGD_DEV_NO_BACKTRACE"] = "1"
if not may_reconnect: