mirror of
https://github.com/esphome/esphome.git
synced 2026-10-07 03:16:37 +00:00
Stat-aware local walk, atomic flag+env application, guard degenerate basedir and -include- flags
This commit is contained in:
@@ -129,3 +129,7 @@ def test_effective_ccache_basedir_prefers_user_value(tmp_path: Path) -> None:
|
||||
assert ccache.effective_ccache_basedir() == "/custom/base"
|
||||
with patch.dict(os.environ, {}, clear=True):
|
||||
assert ccache.effective_ccache_basedir() == str(tmp_path.resolve())
|
||||
# Degenerate values would strip substrings ccache never rewrites
|
||||
for bad in ("", "/"):
|
||||
with patch.dict(os.environ, {"CCACHE_BASEDIR": bad}, clear=True):
|
||||
assert ccache.effective_ccache_basedir() == str(tmp_path.resolve())
|
||||
|
||||
Reference in New Issue
Block a user