]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-109162: Refactor libregrtest WorkerJob (#109171)
authorVictor Stinner <vstinner@python.org>
Sat, 9 Sep 2023 01:03:39 +0000 (03:03 +0200)
committerGitHub <noreply@github.com>
Sat, 9 Sep 2023 01:03:39 +0000 (01:03 +0000)
commita56c92875699c2ba92ed49e72f6abbf363a5c537
tree7a4ccaeda7dc1afdee327d18eb19c96480d7db76
parent489ca0acf00bb87ae63ab9199787843fdec5a0c8
gh-109162: Refactor libregrtest WorkerJob (#109171)

* Rename --worker-args command line option to --worker-json.
* Rename _parse_worker_args() to _parse_worker_json().
* WorkerJob:

  * Add runtests attribute
  * Remove test_name and rerun attribute

* Rename run_test_in_subprocess() to create_worker_process().
* Rename run_tests_worker() to worker_process().
* create_worker_process() uses json.dump(): write directly JSON to
  stdout.
* Convert MultiprocessResult to a frozen dataclass.
* Rename RunTests.match_tests to RunTests.match_tests_dict.
Lib/test/libregrtest/cmdline.py
Lib/test/libregrtest/main.py
Lib/test/libregrtest/runtest.py
Lib/test/libregrtest/runtest_mp.py
Lib/test/test_regrtest.py