Skip to content

Commit 4b00d96

Browse files
committed
added TEST_KEEPDIR to preserve testing dirs for passing tests
1 parent 386afeb commit 4b00d96

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

contrib/pyln-testing/pyln/testing/fixtures.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def directory(request, test_base_dir, test_name):
9191
outcome = 'passed' if rep_call is None else rep_call.outcome
9292
failed = not outcome or request.node.has_errors or outcome != 'passed'
9393

94-
if not failed:
94+
if not failed and not bool(int(os.getenv('TEST_KEEPDIR', '0'))):
9595
try:
9696
shutil.rmtree(directory)
9797
except (OSError, Exception):

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@ def __init__(self, rsignerd_dir, rsignerd_port):
519519
TailableProc.__init__(self, rsignerd_dir)
520520
self.executable = env("REMOTE_SIGNER_CMD", 'rsignerd')
521521
self.opts = [
522-
'--log-level-console=DEBUG',
522+
'--log-level-console=TRACE',
523523
'--log-level-disk=TRACE',
524524
'--datadir={}'.format(rsignerd_dir),
525525
'--port={}'.format(rsignerd_port),

contrib/remote_hsmd/scripts/run-one-test

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ PYTHONPATH=\
66
$PWD/contrib/pyln-client:\
77
$PWD/contrib/pyln-testing:\
88
$PWD/contrib/pyln-proto \
9+
TEST_KEEPDIR=1 \
910
TEST_DEBUG=1 \
1011
DEVELOPER=1 \
1112
VALGRIND=0 \

0 commit comments

Comments
 (0)