From 14a631880c04e1a9449d9d4833d773fd36b04cc2 Mon Sep 17 00:00:00 2001 From: Erhan Kurubas Date: Wed, 11 Oct 2023 23:34:27 +0200 Subject: [PATCH] fix(pytest_gcov): properly extract file path from the gcov output --- examples/system/gcov/pytest_gcov.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/system/gcov/pytest_gcov.py b/examples/system/gcov/pytest_gcov.py index 634b20ac95..b1cc3db772 100644 --- a/examples/system/gcov/pytest_gcov.py +++ b/examples/system/gcov/pytest_gcov.py @@ -48,7 +48,7 @@ def test_gcov(dut: IdfDut, openocd: OpenOcd) -> None: for expect in expect_lines[:]: if expect in line: if expect.endswith('.gcda'): # check file exists - file_path = line.split()[-1].strip("'") + file_path = line.split()[3].strip("'") assert os.path.isfile(file_path) expect_lines.remove(expect)