We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 386afeb commit 6afd234Copy full SHA for 6afd234
contrib/pyln-testing/pyln/testing/fixtures.py
@@ -91,7 +91,7 @@ def directory(request, test_base_dir, test_name):
91
outcome = 'passed' if rep_call is None else rep_call.outcome
92
failed = not outcome or request.node.has_errors or outcome != 'passed'
93
94
- if not failed:
+ if not failed and not bool(int(os.getenv('TEST_KEEPDIR', '0'))):
95
try:
96
shutil.rmtree(directory)
97
except (OSError, Exception):
0 commit comments