| 759 | print() |
| 760 | |
| 761 | def main(self, tests: TestList | None = None) -> NoReturn: |
| 762 | if self.want_add_python_opts: |
| 763 | self._add_python_opts() |
| 764 | |
| 765 | self._init() |
| 766 | |
| 767 | if self.want_cleanup: |
| 768 | cleanup_temp_dir(self.tmp_dir) |
| 769 | sys.exit(0) |
| 770 | |
| 771 | if self.want_wait: |
| 772 | input("Press any key to continue...") |
| 773 | |
| 774 | if self.pythoninfo: |
| 775 | self.run_pythoninfo() |
| 776 | |
| 777 | setup_test_dir(self.test_dir) |
| 778 | selected, tests = self.find_tests(tests) |
| 779 | |
| 780 | exitcode = 0 |
| 781 | if self.want_list_tests: |
| 782 | self.list_tests(selected) |
| 783 | elif self.want_list_cases: |
| 784 | list_cases(selected, |
| 785 | match_tests=self.match_tests, |
| 786 | test_dir=self.test_dir) |
| 787 | else: |
| 788 | exitcode = self.run_tests(selected, tests) |
| 789 | |
| 790 | sys.exit(exitcode) |
| 791 | |
| 792 | |
| 793 | def main(tests=None, _add_python_opts=False, **kwargs) -> NoReturn: |