Skip to content
This repository has been archived by the owner on Apr 20, 2023. It is now read-only.

Commit

Permalink
Added option to disable printing of gcov-out
Browse files Browse the repository at this point in the history
  • Loading branch information
nmoinvaz committed Dec 6, 2020
1 parent 5862842 commit b40cb0a
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions codecov/__init__.py
Expand Up @@ -376,6 +376,9 @@ def main(*argv, **kwargs):
gcov.add_argument(
"--gcov-exec", default="gcov", help="gcov executable to run. Defaults to 'gcov'"
)
gcov.add_argument(
"--no-gcov-out", action="store_true", default=False, help="Disable gcov output"
)
gcov.add_argument("--gcov-args", default="", help="extra arguments to pass to gcov")

advanced = parser.add_argument_group(
Expand Down Expand Up @@ -982,8 +985,11 @@ def main(*argv, **kwargs):
if codecov.gcov_args:
cmd.append(sanitize_arg("", codecov.gcov_args or ""))
cmd.append(path)
write(" Executing gcov (%s)" % cmd)
write(try_to_run(cmd))
if not codecov.no_gcov_out:
write(" Executing gcov (%s)" % cmd)
gcov_out = try_to_run(cmd)
if not codecov.no_gcov_out:
write(gcov_out)

# Collect Reports
# ---------------
Expand Down

0 comments on commit b40cb0a

Please sign in to comment.