Bake the probe stamp into the rule text; edge bindings cannot expand $out

This commit is contained in:
J. Nick Koston
2026-08-26 23:10:55 -05:00
parent 21643396c4
commit 15d4f187c7
2 changed files with 10 additions and 5 deletions
@@ -1871,6 +1871,10 @@ def test_write_project_pch_strict_emits_probe_edge(
content = _write_ninja(paths, ccache="/usr/bin/ccache")
assert "build esphome_pch.probe: pchprobe esphome_pch.h.gch" in content
assert "-Werror=invalid-pch" in content
# $out only expands in rule text; an edge-level binding would emit a
# bare "touch " and fail every strict build
assert "&& touch $out" in content
assert "$stamp" not in content
# With extra src flags the probe edge carries them like the .gch edge
CORE.platformio_options["build_src_flags"] = (