Repository navigation
tests/conftest.py: run spirv-as/spirv-val with bare names in the work folder (non-ANSI TEMP) - #4807
lines9686-rgb wants to merge 1 commit into
Conversation
… folder On Windows the SPIRV-Tools read their command line in the ANSI code page, so a tmp_path under a user name outside it reached them with "?" and every pytest translator test that validates failed. With %TEMP% at "tmp_ação" on a cp1251 PC: 513 failures across test_translate, test_mesh_compute, test_spirv_gs_to_compute, test_image_load_d16_typed, test_pc_tail_ubo and test_vs_packed_inputs on main; 11 (plus 5 errors) with this change, all from those files' own spirv-as calls. Same approach as rdna2spirv.py's assemble_spirv (ItsNotRexed#3423). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Verified AI-assisted (Devin); no game files. |
Item: new TEST item, claimed in #4683 (#4683 (comment)).
tests/conftest.pyShader.validate()handed spirv-as and spirv-val the absolutetmp_path. On Windows they read their command line in the ANSI code page, so a tmp_path under a user name outside it reached them with?(tmp_ação→tmp_acao, "file does not exist") and every pytest translator test that validates failed. They now run in the work folder with bare file names, the approach #3423 took for rdna2spirv.py'sassemble_spirv; output is decoded witherrors="replace".Tested
Windows 11 (ANSI code page 1251), Python 3.12, pytest 9.2, SPIRV-Tools from Vulkan SDK 1.4.357.0, llvm-mc 23.1.6.
test_translate,test_mesh_compute,test_spirv_gs_to_compute,test_image_load_d16_typed,test_pc_tail_ubo,test_vs_packed_inputs:D:\Leonida\tmp_açãoThe 11 + 5 left come from those files' own spirv-as calls (
test_mesh_compute.py~line 134, thegs_modulefixture intest_spirv_gs_to_compute.py), outside this helper; about 50 other test files andtools/spirv_gs_to_compute.pyalso pass full paths to SPIRV-Tools. Left for a follow-up. No game files. AI-assisted (Claude Code).🤖 Generated with Claude Code