cpython/Lib/test/libregrtest
Victor Stinner d13f782a18
gh-109276: libregrtest: fix worker working dir (#109313)
Fix Emscripten and WASI: start the test worker process in the Python
source code directory, where 'python.js' and 'python.wasm' can be
found. Then worker_process() changes to a temporary directory created
to run tests.

* create_worker_process() uses os_helper.SAVEDCWD as cwd.
* worker_process() uses get_temp_dir() as the parent directory for
  get_work_dir().
* Don't use plural but singual for "test" in "Run 1 test ..."
  message.
* Remove unused imports.
* Add WORK_DIR_PREFIX and WORKER_WORK_DIR_PREFIX constants.
2023-09-12 15:13:29 +02:00
..
__init__.py gh-109162: libregrtest: use relative imports (#109250) 2023-09-11 07:02:35 +00:00
cmdline.py gh-109162: libregrtest: add worker.py (#109229) 2023-09-11 01:11:22 +02:00
findtests.py gh-109162: libregrtest: move code around (#109253) 2023-09-11 08:52:03 +00:00
logger.py gh-109162: libregrtest: use relative imports (#109250) 2023-09-11 07:02:35 +00:00
main.py gh-109276: libregrtest: fix worker working dir (#109313) 2023-09-12 15:13:29 +02:00
pgo.py gh-109162: Refactor libregrtest.Regrtest (#109206) 2023-09-10 03:07:05 +02:00
refleak.py gh-109162: libregrtest: use relative imports (#109250) 2023-09-11 07:02:35 +00:00
result.py gh-109276: libregrtest: use separated file for JSON (#109277) 2023-09-11 19:33:42 +02:00
results.py gh-109162: libregrtest: use relative imports (#109250) 2023-09-11 07:02:35 +00:00
run_workers.py gh-109276: libregrtest: fix worker working dir (#109313) 2023-09-12 15:13:29 +02:00
runtests.py gh-109276: libregrtest: limit number workers (#109288) 2023-09-12 03:47:04 +00:00
save_env.py gh-109276: libregrtest only checks saved_test_environment() once (#109278) 2023-09-12 05:01:33 +02:00
setup.py gh-109276: libregrtest calls random.seed() before each test (#109279) 2023-09-12 05:35:08 +02:00
single.py gh-109276: libregrtest only checks saved_test_environment() once (#109278) 2023-09-12 05:01:33 +02:00
utils.py gh-109276: libregrtest: fix worker working dir (#109313) 2023-09-12 15:13:29 +02:00
win_utils.py bpo-44336: Prevent tests hanging on child process handles on Windows (GH-26578) 2022-03-22 00:06:55 +00:00
worker.py gh-109276: libregrtest: fix worker working dir (#109313) 2023-09-12 15:13:29 +02:00