Skip the doomed gch compile after header-generation failure, self-heal the placeholder from CMake

This commit is contained in:
J. Nick Koston
2026-08-27 13:43:36 -05:00
parent 330adb9ba4
commit 52879b8a7f
4 changed files with 18 additions and 4 deletions
@@ -230,7 +230,8 @@ class TestRunCompilePhases:
with pytest.raises(EsphomeError, match="nRF52 native build failed"):
self._run()
assert "Zephyr header generation failed" in caplog.text
assert prepare.called
# The doomed .gch compile is skipped: it would latch .gch.failed
assert not prepare.called
def test_generated_headers_failure_strict_raises(
self, monkeypatch: pytest.MonkeyPatch, compile_ctx: CompileCtx