| 753 | return self._tmp_dir |
| 754 | |
| 755 | def main(self, tests: TestList | None = None) -> NoReturn: |
| 756 | if self.want_add_python_opts: |
| 757 | self._add_python_opts() |
| 758 | |
| 759 | self._init() |
| 760 | |
| 761 | if self.want_cleanup: |
| 762 | cleanup_temp_dir(self.tmp_dir) |
| 763 | sys.exit(0) |
| 764 | |
| 765 | if self.want_wait: |
| 766 | input("Press any key to continue...") |
| 767 | |
| 768 | setup_test_dir(self.test_dir) |
| 769 | selected, tests = self.find_tests(tests) |
| 770 | |
| 771 | exitcode = 0 |
| 772 | if self.want_list_tests: |
| 773 | self.list_tests(selected) |
| 774 | elif self.want_list_cases: |
| 775 | list_cases(selected, |
| 776 | match_tests=self.match_tests, |
| 777 | test_dir=self.test_dir) |
| 778 | else: |
| 779 | exitcode = self.run_tests(selected, tests) |
| 780 | |
| 781 | sys.exit(exitcode) |
| 782 | |
| 783 | |
| 784 | def main(tests=None, _add_python_opts=False, **kwargs) -> NoReturn: |