Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gh-109162: Refactor libregrtest.runtest_mp #109205

Merged
merged 1 commit into from
Sep 10, 2023

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Sep 9, 2023

  • Add attributes to Regrtest and RunTests:

    • fail_env_changed
    • num_workers
  • Rename MultiprocessTestRunner to RunWorkers. Add num_workers parameters to RunWorkers constructor. Remove RunWorkers.ns attribute.

  • Rename TestWorkerProcess to WorkerThread.

  • get_running() now returns a string like: "running (...): ...".

  • Regrtest.action_run_tests() now selects the number of worker processes, instead of the command line parser.

* Add attributes to Regrtest and RunTests:

  * fail_env_changed
  * num_workers

* Rename MultiprocessTestRunner to RunWorkers. Add num_workers
  parameters to RunWorkers constructor. Remove RunWorkers.ns
  attribute.
* Rename TestWorkerProcess to WorkerThread.
* get_running() now returns a string like: "running (...): ...".
* Regrtest.action_run_tests() now selects the number of worker
  processes, instead of the command line parser.
@vstinner vstinner enabled auto-merge (squash) September 10, 2023 00:11
@vstinner vstinner merged commit 0553fdf into python:main Sep 10, 2023
@vstinner vstinner deleted the regrtest_refactor9 branch September 10, 2023 00:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants