minor cleanups

This commit is contained in:
The MMGen Project 2025-07-19 10:21:11 +00:00
commit 828cf4c1ab
Signed by: mmgen
GPG key ID: 3F8B1861E32B7DA2
2 changed files with 3 additions and 3 deletions

View file

@ -314,7 +314,7 @@ if __name__ == '__main__':
try:
tr = CmdTestRunner(cfg, repo_root, data_dir, trash_dir, trash_dir2)
tr.run_tests(cmd_args)
tr.warn_skipped()
tr.print_warnings()
if tr.daemon_started and not cfg.no_daemon_stop:
stop_test_daemons(tr.network_id, remove_datadir=True)
if hasattr(tr, 'tg'):
@ -323,7 +323,7 @@ if __name__ == '__main__':
except KeyboardInterrupt:
if tr.daemon_started and not cfg.no_daemon_stop:
stop_test_daemons(tr.network_id, remove_datadir=True)
tr.warn_skipped()
tr.print_warnings()
if hasattr(tr, 'tg'):
del tr.tg
del tr

View file

@ -484,7 +484,7 @@ class CmdTestRunner:
if cmd == self.cfg.exit_after:
sys.exit(0)
def warn_skipped(self):
def print_warnings(self):
if self.skipped_warnings:
print(yellow('The following tests were skipped and may require attention:'))
r = '-' * 72 + '\n'