forked from espressif/esp-idf
fix(pytest_gcov): properly extract file path from the gcov output
This commit is contained in:
@@ -48,7 +48,7 @@ def test_gcov(dut: IdfDut, openocd: OpenOcd) -> None:
|
|||||||
for expect in expect_lines[:]:
|
for expect in expect_lines[:]:
|
||||||
if expect in line:
|
if expect in line:
|
||||||
if expect.endswith('.gcda'): # check file exists
|
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)
|
assert os.path.isfile(file_path)
|
||||||
|
|
||||||
expect_lines.remove(expect)
|
expect_lines.remove(expect)
|
||||||
|
Reference in New Issue
Block a user