Skip to content

Commit 69dec39

Browse files
committed
Fix logic. Merged reports now work!
1 parent aa6a7e8 commit 69dec39

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/tests/local.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -598,10 +598,11 @@ def gen_coverage():
598598
lines = []
599599
with open(info_path, 'rt') as f:
600600
for line in f.readlines():
601+
line = line.rstrip()
601602
if line.startswith("SF:"):
602603
# This is a source file line: "SF:..."
603604
path = line[3:]
604-
lines.append(f"SF:{os.path.realpath(path)}")
605+
line = f"SF:{os.path.realpath(path)}\n"
605606
lines.append(line)
606607

607608
# re-write it.

0 commit comments

Comments
 (0)