mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
fix(pytest_gcov): properly extract file path from the gcov output
This commit is contained in:
parent
5d1acfc44f
commit
14a631880c
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user