8000 Fixed gcov not found due to passing cmd string instead of list to try… · sajith/codecov-python@9830120 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9830120

Browse files
authored
Fixed gcov not found due to passing cmd string instead of list to try_to_run. codecov#261 (codecov#263)
1 parent 1c0e078 commit 9830120

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

codecov/__init__.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -931,13 +931,11 @@ def main(*argv, **kwargs):
931931
True,
932932
dont_search_here,
933933
):
934-
cmd = (
935-
sanitize_arg("", codecov.gcov_exec or "")
936-
+ " -pb "
937-
+ sanitize_arg("", codecov.gcov_args or "")
938-
+ " "
939-
+ path
940-
)
934+
cmd = sanitize_arg("", codecov.gcov_exec or "").split(" ")
935+
cmd.append("-pb")
936+
if codecov.gcov_args:
937+
cmd.append(sanitize_arg("", codecov.gcov_args or ""))
938+
cmd.append(path)
941939
write(" Executing gcov (%s)" % cmd)
942940
write(try_to_run(cmd))
943941

0 commit comments

Comments
 (0)
0