Skip to content

Commit 2bdab31

Browse files
committed
Added TESTING_ALLOWLIST and --initial-allowlist-file to remotesigner testing startup
1 parent 04ce198 commit 2bdab31

File tree

5 files changed

+6
-0
lines changed

5 files changed

+6
-0
lines changed

contrib/pyln-testing/pyln/testing/utils.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -523,6 +523,8 @@ def __init__(self, rsignerd_dir, rsignerd_port):
523523
'--log-level-disk=DEBUG',
524524
'--datadir={}'.format(rsignerd_dir),
525525
'--port={}'.format(rsignerd_port),
526+
'--initial-allowlist-file={}'.format(env('REMOTE_SIGNER_ALLOWLIST',
527+
'contrib/remote_hsmd/TESTING_ALLOWLIST')),
526528
]
527529
self.prefix = 'rsignerd'
528530
self.rsignerd_port = rsignerd_port

contrib/remote_hsmd/TESTING_ALLOWLIST

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
tb1qeyyk6sl5pr49ycpqyckvmttus5ttj25p0xmvmp

contrib/remote_hsmd/scripts/rerun-failed-tests

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ DEVELOPER=1 \
1313
VALGRIND=0 \
1414
SUBDAEMON='hsmd:remote_hsmd' \
1515
REMOTE_SIGNER_CMD=$(pwd)/../rust-lightning-signer/target/debug/server \
16+
REMOTE_SIGNER_ALLOWLIST=$(pwd)/contrib/remote_hsmd/TESTING_ALLOWLIST \
1617
pytest \
1718
$TESTS \
1819
-n=32 --timeout=300 --timeout_method=thread -v

contrib/remote_hsmd/scripts/run-all-tests

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
SUBDAEMON='hsmd:remote_hsmd' \
44
REMOTE_SIGNER_CMD=$(pwd)/../rust-lightning-signer/target/debug/server \
5+
REMOTE_SIGNER_ALLOWLIST=$(pwd)/contrib/remote_hsmd/TESTING_ALLOWLIST \
56
make \
67
-j16 PYTEST_PAR=32 \
78
DEVELOPER=1 \

contrib/remote_hsmd/scripts/run-one-test

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ VALGRIND=0 \
1313
SLOW_MACHINE=0 \
1414
SUBDAEMON='hsmd:remote_hsmd' \
1515
REMOTE_SIGNER_CMD=$(pwd)/../rust-lightning-signer/target/debug/server \
16+
REMOTE_SIGNER_ALLOWLIST=$(pwd)/contrib/remote_hsmd/TESTING_ALLOWLIST \
1617
pytest \
1718
$THETEST \
1819
-v --timeout=300 --timeout_method=thread -x -s

0 commit comments

Comments
 (0)