From 3eb9ac20b0cfc2a8441ee963e6a55515c77da129 Mon Sep 17 00:00:00 2001 From: callebtc <93376500+callebtc@users.noreply.github.com> Date: Tue, 28 Jul 2026 14:01:21 +0200 Subject: [PATCH] mesh_lab: clear receiver incoming dirs before file scenarios Incoming files are name-uniquified on receipt (e.g. 'small_1k (1).bin'), so repeated runs broke the name-based file_recv matcher. --- tools/release_gate/mesh_lab.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tools/release_gate/mesh_lab.py b/tools/release_gate/mesh_lab.py index 32aebd67..6d35850e 100644 --- a/tools/release_gate/mesh_lab.py +++ b/tools/release_gate/mesh_lab.py @@ -130,6 +130,12 @@ class Device: ) return target + def clear_incoming(self) -> None: + _shell( + self.serial, + f"run-as {APPLICATION_ID} rm -rf cache/files/incoming cache/images/incoming", + ) + # -- test hook commands ------------------------------------------------- def cmd(self, cmd: str, timeout_ms: int = 60_000, **extras: object) -> dict: @@ -296,6 +302,7 @@ def scenario_broadcast(a: Device, b: Device) -> dict: def scenario_file(a: Device, b: Device, fixtures: dict[str, dict], private: bool = False) -> dict: """File transfer A -> B with sha256 integrity verification.""" id_b = whoami(b)["peer_id"] + b.clear_incoming() # avoid name-uniquified collisions across runs results = {} for name, fixture in fixtures.items(): remote = a.push_fixture(fixture["path"])