Skip to content

Commit

Permalink
give GDB option for blackbox tests for lightningd
Browse files Browse the repository at this point in the history
  • Loading branch information
instagibbs committed Jan 18, 2023
1 parent 8d0d6b4 commit ba0efb0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion contrib/pyln-testing/pyln/testing/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def env(name, default=None):
DEPRECATED_APIS = env("DEPRECATED_APIS", "0") == "1"
TIMEOUT = int(env("TIMEOUT", 180 if SLOW_MACHINE else 60))
EXPERIMENTAL_DUAL_FUND = env("EXPERIMENTAL_DUAL_FUND", "0") == "1"

GDB = env("GDBLIGHTD", "0") == "1"

def wait_for(success, timeout=TIMEOUT):
start_time = time.time()
Expand Down Expand Up @@ -794,6 +794,9 @@ def __init__(self, node_id, lightning_dir, bitcoind, executor, valgrind, may_fai
# Reduce precision of errors, speeding startup and reducing memory greatly:
if SLOW_MACHINE:
self.daemon.cmd_prefix += ['--read-inline-info=no']
if GDB:
self.daemon.cmd_prefix += ['gdb']
self.daemon.cmd_prefix += ['--args']

def _create_rpc(self, jsonschemas):
"""Prepares anything related to the RPC.
Expand Down

0 comments on commit ba0efb0

Please sign in to comment.