]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-109162: Refactor libregrtest.runtest (#109172)
authorVictor Stinner <vstinner@python.org>
Sat, 9 Sep 2023 01:37:48 +0000 (03:37 +0200)
committerGitHub <noreply@github.com>
Sat, 9 Sep 2023 01:37:48 +0000 (01:37 +0000)
commite9e2ca7a7b4b4320009cdf85c84ec5bd6c4923c3
treeacbd759edcaf2a286a378d7678c910a3963e2d37
parent057bc7249073066ed8087b548ee06f0eabfa9e7c
gh-109162: Refactor libregrtest.runtest (#109172)

* Rename runtest() to run_single_test().
* Pass runtests to run_single_test().
* Add type annotation to Regrtest attributes. Add missing attributes
  to Namespace.
* Add attributes to Regrtest and RunTests:

  * fail_fast
  * ignore_tests
  * match_tests
  * output_on_failure
  * pgo
  * pgo_extended
  * timeout

* Get pgo from 'runtests', rather than from 'ns'.
* Remove WorkerJob.match_tests.
* setup_support() now gets pgo_extended from runtests.
* save_env(): change parameter order, pass test_name first.
* Add setup_test_dir() function.
* Pass runtests to setup_tests().
Lib/test/libregrtest/cmdline.py
Lib/test/libregrtest/main.py
Lib/test/libregrtest/runtest.py
Lib/test/libregrtest/runtest_mp.py
Lib/test/libregrtest/setup.py