]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-109162: Refactor libregrtest.runtest_mp (#109205)
authorVictor Stinner <vstinner@python.org>
Sun, 10 Sep 2023 00:24:38 +0000 (02:24 +0200)
committerGitHub <noreply@github.com>
Sun, 10 Sep 2023 00:24:38 +0000 (00:24 +0000)
commit0553fdfe3040073307e8c53273041130148541d5
tree6a13843168e13493b8ef07e01ffc2ac812bbe964
parent0c0f254230bbc9532a7e78077a639a3ac940953c
gh-109162: Refactor libregrtest.runtest_mp (#109205)

* 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.
Lib/test/libregrtest/cmdline.py
Lib/test/libregrtest/main.py
Lib/test/libregrtest/runtest.py
Lib/test/libregrtest/runtest_mp.py