Uh oh!
There was an error while loading. Please reload this page.
gh-109162: libregrtest: add worker.py - #109229
Conversation
709c02b to
85a3c25Comparevstinner
commented
Sep 10, 2023
Oh, there are unrelated failures on the CI:
I rebased my PR on the main branch to schedule new CI jobs. |
vstinner
commented
Sep 10, 2023
vstinner
commented
Sep 10, 2023
test_site fails if it's run from a non-ASCII directory: I created issue #109237. |
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. * Rename make_temp_dir() to get_work_dir() and move it to utils. It no longer calls os.makedirs(): Regrtest.main() now calls it. * Move fix_umask() to utils. The function is now called by setup_tests(). * Move StrPath to utils. * Add exit_timeout() context manager to utils. * RunTests: Replace junit_filename (StrPath) with use_junit (bool).
85a3c25 to
99b345bComparebedevere-bot
commented
Sep 10, 2023
|
bedevere-bot
commented
Sep 10, 2023
|
Add new worker.py file:
Related changes: