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 #109172

Merged
merged 1 commit into from
Sep 9, 2023

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Sep 9, 2023

  • 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().

* 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().
@vstinner vstinner enabled auto-merge (squash) September 9, 2023 01:14
@vstinner vstinner merged commit e9e2ca7 into python:main Sep 9, 2023
@vstinner vstinner deleted the regrtest_refactor5 branch September 9, 2023 01:37
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