test: Fix RESET_TEST=false

This commit is contained in:
tecnovert
2022-10-25 21:44:01 +02:00
parent 65183133d8
commit 18974d9458
2 changed files with 6 additions and 3 deletions

View File

@@ -120,8 +120,11 @@ class Test(unittest.TestCase):
random.seed(time.time())
logging.info('Preparing %d nodes.', NUM_NODES)
prepare_nodes(NUM_NODES, 'bitcoin,monero', True, {'min_sequence_lock_seconds': 60}, PORT_OFS)
if os.path.exists(test_path) and not RESET_TEST:
logging.info(f'Continuing with existing directory: {test_path}')
else:
logging.info('Preparing %d nodes.', NUM_NODES)
prepare_nodes(NUM_NODES, 'bitcoin,monero', True, {'min_sequence_lock_seconds': 60}, PORT_OFS)
signal.signal(signal.SIGINT, lambda signal, frame: cls.signal_handler(cls, signal, frame))