Lines Matching refs:tests
31 # gh-90681: When rerunning tests, we might need to rerun the whole
51 tests -- a list of strings containing test names (optional)
52 testdir -- the directory in which to look for tests (optional)
58 If the tests argument is omitted, the tests listed on the
72 # tests
73 self.tests = []
217 def find_tests(self, tests):
218 self.tests = tests
225 self.tests = [next_test]
230 self.tests = []
240 self.tests.append(match.group())
242 removepy(self.tests)
245 # add default PGO tests if no tests are specified
257 # if testdir is set, then we are not running the python tests suite, so
258 # don't add default tests to be executed or skipped (pass empty values)
265 self.selected = self.tests or self.ns.args or alltests
267 self.selected = self.tests
276 # Remove all the selected tests that precede start if it's set.
281 print("Couldn't find starting test (%s), using all tests"
327 "Re-running failed tests is not supported with --python "
338 self.log("Re-running failed tests in verbose mode")
422 print("10 slowest tests:")
449 print(count(len(self.run_no_tests), "test"), "run no tests:")
459 msg = "Run tests sequentially"
465 for test_index, test_name in enumerate(self.tests, 1):
507 def _test_forever(self, tests):
509 for test_name in tests:
553 or self.tests or self.ns.args)):
559 msg = ("WARNING: Running tests with --huntrleaks/-R and less than "
567 self.tests = self._test_forever(list(self.selected))
571 self.tests = iter(self.selected)
627 totals = {'tests': 0, 'errors': 0, 'failures': 0}
646 # Emscripten has default umask 0o777, which breaks some tests.
659 # When tests are run from the Python build directory, it is best practice
680 # the tests. The name of the dir includes the pid to allow parallel
709 def main(self, tests=None, **kwargs):
723 # Run the tests in a context manager that temporarily changes the CWD
733 self._main(tests, kwargs)
751 def _main(self, tests, kwargs):
764 self.find_tests(tests)
793 def main(tests=None, **kwargs):
795 Regrtest().main(tests=tests, **kwargs)