Skip to content

gh-109276: libregrtest: fix work dir on WASI #109356

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

Merged
merged 2 commits into from
Sep 13, 2023
Merged

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Sep 13, 2023

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.

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.
@vstinner
Copy link
Member Author

!buildbot wasm32-wasi

@bedevere-bot
Copy link

🤖 New build scheduled with the buildbot fleet by @vstinner for commit ce06a36 🤖

The command will test the builders whose names match following regular expression: wasm32-wasi

The builders matched are:

  • wasm32-wasi PR

@vstinner
Copy link
Member Author

!buildbot wasm32-wasi

@bedevere-bot
Copy link

🤖 New build scheduled with the buildbot fleet by @vstinner for commit 7e02048 🤖

The command will test the builders whose names match following regular expression: wasm32-wasi

The builders matched are:

  • wasm32-wasi PR

@vstinner
Copy link
Member Author

Nice! WASI buildbot pass again with this fix!

Total test files: run=460/463 skipped=143 resource_denied=3
Result: SUCCESS

@vstinner vstinner enabled auto-merge (squash) September 13, 2023 01:21
@vstinner vstinner merged commit b544c2b into python:main Sep 13, 2023
@vstinner vstinner deleted the regrtest_wasi branch September 13, 2023 01:40
vstinner added a commit to vstinner/cpython that referenced this pull request Sep 13, 2023
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.
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