]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-109276: libregrtest: fix work dir on WASI (#109356)
authorVictor Stinner <vstinner@python.org>
Wed, 13 Sep 2023 01:40:44 +0000 (03:40 +0200)
committerGitHub <noreply@github.com>
Wed, 13 Sep 2023 01:40:44 +0000 (01:40 +0000)
commitb544c2b1355571a36fe0c212f92e9b163ceb16af
treed7191cc790011ba6cf56784a9658e1969358f047
parent715f6632589fc69595ed7fde847e5405925fb94b
gh-109276: libregrtest: fix work dir on WASI (#109356)

On WASI platform, get_temp_dir() should behave differently since the
parent process is a WASI process and uses a different get_temp_dir()
path.

Fix also WorkerThread._runtest(): don't read JSON file if the worker
process exit code is non-zero.
Lib/test/libregrtest/run_workers.py
Lib/test/libregrtest/utils.py