Skip to content

Commit

Permalink
test/cli/testutils.py: add cppcheck_path()
Browse files Browse the repository at this point in the history
  • Loading branch information
mvds00 committed Jan 6, 2024
1 parent 71212c7 commit 22f65ee
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/cli/testutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,12 @@ def __lookup_cppcheck_exe():
return exe_path


def cppcheck_path():
exe = __lookup_cppcheck_exe()
assert exe is not None, 'no cppcheck binary found'
return os.path.dirname(exe)


# Run Cppcheck with args
def cppcheck(args, env=None, remove_checkers_report=True):
exe = __lookup_cppcheck_exe()
Expand Down

0 comments on commit 22f65ee

Please sign in to comment.