Skip to content

gh-108834: regrtest reruns failed tests in subprocesses#108839

Merged
vstinner merged 4 commits intopython:mainfrom
vstinner:regrtest_rerun
Sep 3, 2023
Merged

gh-108834: regrtest reruns failed tests in subprocesses#108839
vstinner merged 4 commits intopython:mainfrom
vstinner:regrtest_rerun

Conversation

@vstinner
Copy link
Member

@vstinner vstinner commented Sep 3, 2023

Rename --verbose2 option (-w) to --rerun. Keep --verbose2 as a deprecated alias.

Fix statistics in regrtest summary.

Changes:

  • Add RunTests class.
  • Add TestResult.get_rerun_match_tests() method
  • Rewrite code to serialize/deserialize worker arguments as JSON using a new WorkerJob class.
  • Fix stats when a test is run with --forever --rerun.
  • If failed test names cannot be parsed, log a warning and don't filter tests.
  • test_regrtest.test_rerun_success() now uses a marker file, since the test is re-run in a separated process.
  • Add tests on normalize_test_name() function.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants