mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-27 00:00:52 +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#1250
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/1219
Author: @robot00f
Created: 11/24/2026
Status: 🔄 Open
Base:
main← Head:fix/device-filter-wine📝 Commits (1)
9a04373test: run the device-filter tools through wine on a non-Windows host (#1150)📊 Changes
2 files changed (+100 additions, -3 deletions)
View changed files
📝
runtime/test/check_device_filter_tools.py(+29 -3)➕
tests/test_check_device_filter_tools.py(+71 -0)📄 Description
Claim: https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7143617202 (ID
VK-DEVICE-FILTER-WINE; from #1150)vk_device_filter_toolsruns a host Python that startedvk_descriptor_bench.exedirectly, so a ctest run on Linux gotOSError: [Errno 8] Exec format error(PierreEbele, #1150) -- a runner bug, not a tool bug: the tools are right to be Windows executables, and the test passes natively here.Change
runtime/test/check_device_filter_tools.py: onelauncher()picks the prefix a tool runs with --[]on Windows and for a non-PE,winewhen the target starts withMZon any other host, withLEONIDA_WINEnaming another loader. It is applied to both tools, not only the one that lists devices. When the host is not Windows and the loader is not onPATH, the script exits 77 withSKIP: ... <loader> is not on PATHinstead of reporting the Exec format error as a failure. Native Windows is unchanged.tests/test_check_device_filter_tools.pycovers the choice itself (Windows direct, PE through wine, non-PE direct, no loader still names one, the override, a missing tool, and the 77 path throughmain), so the branch runs on Windows CI where wine is absent.Tested
ok: vk_descriptor_bench refuses .../ok: vk_sandbox refuses ..., exit 0 -- unchanged from before.python -I tests/test_check_device_filter_tools.py-> OK (7 tests);compileall-> 0;check_no_game_data.py-> exit 0.Not run: a Wine host (none here). The launcher branch is covered by the unit test, not by a real Wine launch.
GPUs tested: NVIDIA GPU (Pascal class, 4 GB), driver 582.28, Windows 10 19045 for the native run.
AI-assisted: yes (OpenCode, DeepSeek V4.1 Flash)
Checklist
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.