Fix inaccurate comment

The previous commit was merged somewhat prematurely, and fixed the
coverage on Travis by limiting `kcov` to a single process.

The previous commit also pins to a specific branch, which was not
necessary to fix this issue, but is a good idea anyway to prevent
bad commits on kcov's master branch from breaking PyO3's build.
This commit is contained in:
Paul Ganssle 2019-04-18 12:12:17 -04:00
parent c4c7997c7b
commit 821ce0e375
No known key found for this signature in database
GPG key ID: CD54FCE3D964BEFB

View file

@ -2,12 +2,14 @@
set -ex
### Run kcov in parallel #######################################################
### Run kcov ###################################################################
rm -f target/debug/pyo3*.d
rm -f target/debug/test_*.d
rm -f target/debug/test_doc-*
# Note: On travis this is run with -P1 because it started failing with
# `-P $(nproc)`. kcov can probably be run in parallel if used with different CI
FILES=$(find . -path ./target/debug/pyo3\* -or -path ./target/debug/test_\*)
echo $FILES | xargs -n1 -P1 sh -c '
dir="target/cov/$(basename $@)"