Skip to content

Commit

Permalink
local mutation test speed up - clear cppcheck dumps
Browse files Browse the repository at this point in the history
  • Loading branch information
dzid26 committed Jun 8, 2024
1 parent 2dbd304 commit 60c3a42
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/misra/test_mutation.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,11 @@
files = [f for f in all_files if f.endswith(('.c', '.h')) and not f.startswith(IGNORED_PATHS)]
assert len(files) > 70, all(d in files for d in ('board/main.c', 'board/stm32f4/llbxcan.h', 'board/stm32h7/llfdcan.h', 'board/safety/safety_toyota.h'))

# Remove cppcheck files from previous runs to speed tree copying
for f in glob.glob(f"{ROOT}/**/*", recursive=True):
if f.endswith(('.dump', '.ctu-info')):
os.remove(f)

for p in patterns:
mutations.append((random.choice(files), p, True))

Expand Down

0 comments on commit 60c3a42

Please sign in to comment.