minor cleanups
This commit is contained in:
parent
8fde11eb46
commit
828cf4c1ab
2 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue