mirror of
https://github.com/esphome/esphome.git
synced 2026-09-11 15:27:33 +00:00
Print per-tool completion during parallel extraction
This commit is contained in:
@@ -75,6 +75,8 @@ def install_one(tool: object, name: str, version: str) -> bool | None:
|
||||
)
|
||||
return None
|
||||
return False
|
||||
# Per-tool completion keeps the multi-minute unpack phase visibly alive
|
||||
print(f"extracted {name}@{version}", flush=True)
|
||||
return True
|
||||
|
||||
|
||||
|
||||
@@ -2213,6 +2213,8 @@ def test_install_tool_archives_inprocess_dedupes_and_skips(
|
||||
"Extracting 2 ESP-IDF tool archive(s) with 2 worker(s): "
|
||||
"cmake@3.30.2, ninja@1.12.1" in captured.out
|
||||
)
|
||||
assert "extracted cmake@3.30.2" in captured.out
|
||||
assert "extracted ninja@1.12.1" in captured.out
|
||||
assert "leaving broken broken-tool to the installer" in captured.err
|
||||
tools = tmp_path / "tp" / "tools"
|
||||
assert (tools / "cmake" / "3.30.2" / ".installed").is_file()
|
||||
|
||||
Reference in New Issue
Block a user