test: Fix RESET_TEST=false

This commit is contained in:
tecnovert 2022-10-25 21:44:01 +02:00
parent 65183133d8
commit 18974d9458
No known key found for this signature in database
GPG key ID: 8ED6D8750C4E3F93
2 changed files with 6 additions and 3 deletions

View file

@ -1299,7 +1299,7 @@ def main():
with open(config_path, 'w') as fp:
json.dump(settings, fp, indent=4)
logger.info('Done.')
logger.info(f'Done. Coin {add_coin} successfully added.')
return 0
logger.info('With coins: %s', ', '.join(with_coins))

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))