ci: make app path relative to IDF_PATH minimum free heap size log

This commit is contained in:
Aleksei Apaseev 2024-12-16 11:21:01 +08:00
parent 13e8541007
commit 5bbc767f2e

View File

@ -357,7 +357,7 @@ def check_performance(idf_path: str) -> t.Callable[[str, float, str], None]:
@pytest.fixture
def log_minimum_free_heap_size(dut: IdfDut, config: str) -> t.Callable[..., None]:
def log_minimum_free_heap_size(dut: IdfDut, config: str, idf_path: str) -> t.Callable[..., None]:
def real_func() -> None:
res = dut.expect(r'Minimum free heap size: (\d+) bytes')
logging.info(
@ -368,7 +368,7 @@ def log_minimum_free_heap_size(dut: IdfDut, config: str) -> t.Callable[..., None
'[target] {}\n'
'[minimum_free_heap_size] {} Bytes\n'
'------ heap size end ------'.format(
dut.app.app_path,
dut.app.app_path.replace(idf_path, '').lstrip('/\\'),
os.path.basename(dut.app.app_path),
config,
dut.target,