mirror of
https://github.com/esphome/esphome.git
synced 2026-08-22 22:26:21 +00:00
Merge branch 'esp8266-native-library-backend' into esp8266-native-build-spec
This commit is contained in:
@@ -142,8 +142,9 @@ def check_and_install(framework_version: Version) -> InstalledPaths:
|
||||
|
||||
|
||||
# Sentinel: "resolve for me" (None is a real value meaning disabled).
|
||||
# run_compile resolves once and threads the result so one build never pays
|
||||
# the PATH scan and runnability probe three times.
|
||||
# The native run_compile (a later PR in the chain) will resolve once and
|
||||
# thread the result so one build never pays the PATH scan and runnability
|
||||
# probe three times.
|
||||
CCACHE_UNRESOLVED: Any = object()
|
||||
|
||||
|
||||
|
||||
@@ -157,7 +157,10 @@ def test_get_build_env_without_path_has_no_empty_entry(tmp_path: Path) -> None:
|
||||
def test_ccache_env_accepts_a_preresolved_path() -> None:
|
||||
"""A caller that already resolved ccache threads it through; the probe
|
||||
must not run again (None means resolved-and-disabled)."""
|
||||
with patch.object(framework, "ccache_path") as mock_resolve:
|
||||
with (
|
||||
patch.dict(os.environ, {}, clear=True),
|
||||
patch.object(framework, "ccache_path") as mock_resolve,
|
||||
):
|
||||
assert framework.ccache_env(None) == {}
|
||||
env = framework.ccache_env("/usr/bin/ccache")
|
||||
mock_resolve.assert_not_called()
|
||||
|
||||
Reference in New Issue
Block a user