We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I see code like this:
subprocess.call( 'cd "%s" && %s %s%s "%s"' % ( gcov_root, args.gcov, args.gcov_options, local_gcov_options, path), shell=True)
You should wrap these in strings in calls to pipes.quote (Python 2.7) or shlex.quote (Python 3.3).
pipes.quote
shlex.quote
It would probably be OK to not execute this in a shell, by the way, and just set the cwd argument. No quoting necessary.
cwd
Also the check_call method will raise an exception if the subcommand failed, which might be useful to know.
check_call
The text was updated successfully, but these errors were encountered:
Patches of course welcome.
cpp-coveralls currently targets pypy, 2.7, 3.4, and 3.5 [1] Is there a quoting option that supports both python2 and python3 ?
As you mentioned, it may make more sense to use a python-native cd equivalent.
cd
[1] https://github.com/eddyxu/cpp-coveralls/blob/master/.travis.yml#L3
Sorry, something went wrong.
No branches or pull requests
I see code like this:
You should wrap these in strings in calls to
pipes.quote
(Python 2.7) orshlex.quote
(Python 3.3).It would probably be OK to not execute this in a shell, by the way, and just set the
cwd
argument. No quoting necessary.Also the
check_call
method will raise an exception if the subcommand failed, which might be useful to know.The text was updated successfully, but these errors were encountered: