From 81d1b5476c60cfcde771a25618c59a7c98370611 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kevin=20R=C3=B6sch?= Date: Wed, 8 Dec 2021 16:47:24 +0100 Subject: [PATCH] hard coded ignore files which start with "mocs_compilation and delete the corresponding gcda file, because otherwise our current coverage pipeline fails. --- scripts/eval_coverage.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/eval_coverage.py b/scripts/eval_coverage.py index 996f894..7274769 100755 --- a/scripts/eval_coverage.py +++ b/scripts/eval_coverage.py @@ -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):]