mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 23:35:53 +01:00
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#814
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/776
Author: @Boost9898
Created: 11/24/2026
Status: ✅ Merged
Merged: 11/24/2026
Merged by: @ubiquitarianism
Base:
main← Head:fix/native-pso-hashes-help📝 Commits (1)
116de82native_pso_hashes: exit 0 on --help📊 Changes
2 files changed (+12 additions, -0 deletions)
View changed files
📝
tests/test_native_pso_hashes.py(+9 -0)📝
tools/native_pso_hashes.py(+3 -0)📄 Description
Claimed in the coordination issue as: https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7133124413
What and why
#497 (
1740e093c) addedtools/native_pso_hashes.py, which imports its siblingshader_carve.tests/test_tool_startup.pyderives its list from such imports and runs each tool with--help. This one took--helpas a wrong argument count, printed the usage and exited 2, sotest_each_sibling_importing_tool_startsfails onmain647affe2a(tool='native_pso_hashes').main()now treats-h/--helpliketools/mesh_compute_vs.pydoes: it prints the docstring to stdout and returns 0. A wrong argument count still returns 2. A unit test intests/test_native_pso_hashes.pycovers both flags.Tested
Apple M4, macOS 26.5.1, Python 3.14.8 and 3.12.10, CPU only, no game files.
tests/test_tool_startup.py: fails onmain647affe2a. With this change, OK on both versions.tests/test_native_pso_hashes.py(with the new test): OK on both versions. Negative control: without the change to the tool, the new test fails and so doestest_tool_startup.py.python -m compileall,git diff --checkandscripts/check_no_game_data.pyon the changed files: clean.GPUs tested: n/a (no GPU tests involved)
AI-assisted: yes
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed. (n/a: no translator rule changes)🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.