Title: gh-109162: libregrtest: add worker.py by vstinner · Pull Request #109229 · python/cpython · GitHub
Open Graph Title: gh-109162: libregrtest: add worker.py by vstinner · Pull Request #109229 · python/cpython
X Title: gh-109162: libregrtest: add worker.py by vstinner · Pull Request #109229 · python/cpython
Description: Add new worker.py file: Move create_worker_process() and worker_process() to this file. Add main() function to worker.py. create_worker_process() now runs the command: "python -m test.libregrtest.worker JSON". create_worker_process() now starts the worker process in the current working directory. Regrtest now gets the absolute path of the reflog.txt filename: -R command line option filename. Remove --worker-json command line option. Remove test_regrtest.test_worker_json(). Related changes: Add write_json() and from_json() methods to TestResult. Rename select_temp_dir() to get_temp_dir() and move it to utils.py. Rename make_temp_dir() to get_work_dir() and move it to utils.py. It no longer calls os.makedirs(): Regrtest.main() now calls it. Move fix_umask() to utils.py. The function is now called by setup_tests(). Move StrPath to utils.py. RunTests: Replace junit_filename (StrPath) with use_junit (bool). Issue: gh-109162
Open Graph Description: Add new worker.py file: Move create_worker_process() and worker_process() to this file. Add main() function to worker.py. create_worker_process() now runs the command: "python -m test.libregr...
X Description: Add new worker.py file: Move create_worker_process() and worker_process() to this file. Add main() function to worker.py. create_worker_process() now runs the command: "python -m test.lib...
Opengraph URL: https://github.com/python/cpython/pull/109229
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:d1a56108-ae3f-1f22-7aca-2183c3fea008 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | B402:14FC13:87AAE3:B8CDB9:696AB56A |
| html-safe-nonce | 9c31d41fcc96c7530c016883d44d1bd30a96a484b4a971b58c99114edbf107ed |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNDAyOjE0RkMxMzo4N0FBRTM6QjhDREI5OjY5NkFCNTZBIiwidmlzaXRvcl9pZCI6Ijg2MjE3MTUyMjAxOTI3NjEzOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 36e5aee4364de54574365c3690589b9fe81775d5ccc4eabcea5717ae8c5fc8e2 |
| hovercard-subject-tag | pull_request:1509138566 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python/cpython/pull/109229/files |
| twitter:image | https://avatars.githubusercontent.com/u/194129?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/194129?s=400&v=4 |
| og:image:alt | Add new worker.py file: Move create_worker_process() and worker_process() to this file. Add main() function to worker.py. create_worker_process() now runs the command: "python -m test.libregr... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4fa1799b6a53c2d30c950d74230781bef9e7f61138c72c7727e4b83f0743752b |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 41f276818bd204c4a30a0281fb3c576298d9474c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width