From f462c263e97094bb37b4f459f5aa5d07af34e98c Mon Sep 17 00:00:00 2001 From: Tauwni <102470988+Tauwni@users.noreply.github.com> Date: Mon, 30 Nov 2026 12:00:36 +0100 Subject: [PATCH] test_shader_build_fallbacks: pin LEONIDA_EXPLICIT_LOD_BIAS=0 in the ftz32 test main's new test mocks exactly two subprocess.run calls (the ftz32 probe and the translator); unset, build.py's --lod-bias probe ran first and used one of them, so the translator call raised StopIteration. Co-Authored-By: Claude Opus 5.5 --- tests/test_shader_build_fallbacks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_shader_build_fallbacks.py b/tests/test_shader_build_fallbacks.py index 99ad67476..bc53ff625 100644 --- a/tests/test_shader_build_fallbacks.py +++ b/tests/test_shader_build_fallbacks.py @@ -162,7 +162,7 @@ class BuildUnderFallbackTest(unittest.TestCase): assembled = SimpleNamespace(stdout="\ts_endpgm\n", stderr="", returncode=0) probe = SimpleNamespace(stdout=json.dumps(report), returncode=0) translator = SimpleNamespace(returncode=23) # stop after recording the translator command - with mock.patch.dict(os.environ, {"LEONIDA_BARY_FALLBACK": "0"}), \ + with mock.patch.dict(os.environ, {"LEONIDA_BARY_FALLBACK": "0", "LEONIDA_EXPLICIT_LOD_BIAS": "0"}), \ mock.patch.object(sys, "argv", ["build.py", tmp, "cs_store"]), \ mock.patch.object(self.build.mc_command, "run", return_value=assembled), \ mock.patch.object(self.build.subprocess, "run", side_effect=[probe, translator]) as calls: