Skip to content
This repository was archived by the owner on May 21, 2025. It is now read-only.

Commit 58032a4

Browse files
authored
Added option to disable printing of gcov-out (#305)
1 parent 5862842 commit 58032a4

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

codecov/__init__.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,9 @@ def main(*argv, **kwargs):
376376
gcov.add_argument(
377377
"--gcov-exec", default="gcov", help="gcov executable to run. Defaults to 'gcov'"
378378
)
379+
gcov.add_argument(
380+
"--no-gcov-out", action="store_true", default=False, help="Disable gcov output"
381+
)
379382
gcov.add_argument("--gcov-args", default="", help="extra arguments to pass to gcov")
380383

381384
advanced = parser.add_argument_group(
@@ -982,8 +985,11 @@ def main(*argv, **kwargs):
982985
if codecov.gcov_args:
983986
cmd.append(sanitize_arg("", codecov.gcov_args or ""))
984987
cmd.append(path)
985-
write(" Executing gcov (%s)" % cmd)
986-
write(try_to_run(cmd))
988+
if not codecov.no_gcov_out:
989+
write(" Executing gcov (%s)" % cmd)
990+
gcov_out = try_to_run(cmd)
991+
if not codecov.no_gcov_out:
992+
write(gcov_out)
987993

988994
# Collect Reports
989995
# ---------------

0 commit comments

Comments
 (0)