Skip to content

Commit

Permalink
support addtl lcov_result args
Browse files Browse the repository at this point in the history
  • Loading branch information
mwcondino committed Nov 4, 2024
1 parent 3586e11 commit b980f84
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions colcon_lcov_result/task/lcov.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ async def lcov_capture(self, *, additional_hooks=None): # noqa: D102
'--output-file', str(output_file),
'--config-file', str(self.context.args.lcov_config_file)]
cmd.extend(additional_args)
if args.lcov_args:
cmd.extend(args.lcov_args)

rc = await run(
self.context,
Expand Down
6 changes: 6 additions & 0 deletions colcon_lcov_result/verb/lcov_result.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,12 @@ def add_arguments(self, *, parser): # noqa: D102
nargs='*',
help='Remove files matching FILTER from total coverage (e.g. "*/test/*")'
)
parser.add_argument(
'--lcov-args',
nargs='*',
help='Additional arguments to pass to lcov'
)

add_packages_arguments(parser)
add_log_level_argument(parser)
add_executor_arguments(parser)
Expand Down

0 comments on commit b980f84

Please sign in to comment.