Browse Source

minor cleanups

The MMGen Project 4 months ago
parent
commit
828cf4c1ab
2 changed files with 3 additions and 3 deletions
  1. 2 2
      test/cmdtest.py
  2. 1 1
      test/cmdtest_d/include/runner.py

+ 2 - 2
test/cmdtest.py

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

+ 1 - 1
test/cmdtest_d/include/runner.py

@@ -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'