Skip to content

Commit

Permalink
hard coded ignore files which start with "mocs_compilation and delete…
Browse files Browse the repository at this point in the history
… the corresponding gcda file, because otherwise our current coverage pipeline fails.
  • Loading branch information
keroe committed Dec 8, 2021
1 parent 343c7d3 commit 81d1b54
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/eval_coverage.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ def sync_gcno_files(path, build_dir):
copied_something = False
for root, dirs, files in os.walk(path):
for file in files:
# we remove the mocs file that is auto generated because there is no .gcno file generated and I don't know why
if file.startswith("mocs_compilation"):
os.remove(os.path.join(root,file))
continue
if file.endswith(".gcda"):
file_gcno = file[:len(file) - 4] + "gcno"
gcda_file = os.path.join(root, file_gcno)[len(path):]
Expand Down

0 comments on commit 81d1b54

Please sign in to comment.