mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-18 21:35:11 +01:00
pytest: Remove directories of successful tests
Signed-off-by: Christian Decker <decker.christian@gmail.com>
This commit is contained in:
parent
d43403257d
commit
38b7a0e2d2
@ -5,6 +5,7 @@ import logging
|
||||
import os
|
||||
import pytest
|
||||
import re
|
||||
import shutil
|
||||
import tempfile
|
||||
import utils
|
||||
|
||||
@ -99,6 +100,8 @@ def node_factory(directory, test_name, bitcoind, executor):
|
||||
if not ok:
|
||||
raise Exception("At least one lightning exited with unexpected non-zero return code")
|
||||
|
||||
shutil.rmtree(nf.directory)
|
||||
|
||||
|
||||
def getValgrindErrors(node):
|
||||
for error_file in os.listdir(node.daemon.lightning_dir):
|
||||
|
@ -337,6 +337,8 @@ class BaseLightningDTests(unittest.TestCase):
|
||||
if not ok:
|
||||
raise Exception("At least one lightning exited with unexpected non-zero return code")
|
||||
|
||||
shutil.rmtree(self.node_factory.directory)
|
||||
|
||||
|
||||
class LightningDTests(BaseLightningDTests):
|
||||
def connect(self, may_reconnect=False):
|
||||
|
Loading…
Reference in New Issue
Block a user