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: libregrtest: rename runtest_mp.py to run_workers.py #109248

Merged
merged 1 commit into from
Sep 11, 2023

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Sep 11, 2023

  • Rename runtest_mp.py to run_workers.py
  • Move exit_timeout() and temp_cwd() context managers from Regrtest.main() to Regrtest.run_tests(). Actions like --list-tests or --list-cases don't need these protections.
  • Regrtest: remove selected and tests attributes. Pass 'selected' to list_tests(), list_cases() and run_tests(). display_result() now expects a TestTuple, instead of TestList.
  • Rename setup_tests() to setup_process() and rename setup_support() to setup_tests().
  • Move _adjust_resource_limits() to utils and rename it to adjust_rlimit_nofile().
  • Move replace_stdout() to utils.
  • Fix RunTests.verbose type: it's an int.

* Rename runtest_mp.py to run_workers.py
* Move exit_timeout() and temp_cwd() context managers from
  Regrtest.main() to Regrtest.run_tests(). Actions like --list-tests
  or --list-cases don't need these protections.
* Regrtest: remove selected and tests attributes. Pass 'selected' to
  list_tests(), list_cases() and run_tests(). display_result() now
  expects a TestTuple, instead of TestList.
* Rename setup_tests() to setup_process() and rename setup_support()
  to setup_tests().
* Move _adjust_resource_limits() to utils and rename it to
  adjust_rlimit_nofile().
* Move replace_stdout() to utils.
* Fix RunTests.verbose type: it's an int.
@vstinner vstinner enabled auto-merge (squash) September 11, 2023 03:04
@vstinner vstinner merged commit 0c139b5 into python:main Sep 11, 2023
@vstinner vstinner deleted the regrtest_refactor16 branch September 11, 2023 03:27
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