Skip to content

Commit 440f814

Browse files
committed
[REVERT ME] Command "coverage" is "python3-coverage" in Debian land
Signed-off-by: Sebastian Pipping <[email protected]>
1 parent f1e40ab commit 440f814

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/py2lcov/py2lcov.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ while [ $# -gt 0 ] ; do
4040
shift
4141
fi
4242
COVER="perl -MDevel::Cover=-db,${COVER_DB},-coverage,statement,branch,condition,subroutine,-silent,1 "
43-
PYCOV="COVERAGE_FILE=${PYCOV_DB} coverage run --branch --append"
44-
#PYCOV="coverage run --data-file=${PYCOV_DB} --branch --append"
43+
PYCOV="COVERAGE_FILE=${PYCOV_DB} python3-coverage run --branch --append"
44+
#PYCOV="python3-coverage run --data-file=${PYCOV_DB} --branch --append"
4545
;;
4646

4747
--home | -home )
@@ -141,14 +141,14 @@ if [[ 1 == $CLEAN_ONLY ]] ; then
141141
exit 0
142142
fi
143143

144-
which coverage
144+
which python3-coverage
145145
if [ 0 != $? ] ; then
146146
echo "unable to run py2lcov - please install python Coverage.py package"
147147
exit 1
148148
fi
149149

150150
# some corner cases:
151-
COVERAGE_FILE=./functions.dat coverage run --branch ./test.py
151+
COVERAGE_FILE=./functions.dat python3-coverage run --branch ./test.py
152152
if [ 0 != $? ] ; then
153153
echo "coverage functions failed"
154154
if [ 0 == $KEEP_GOING ] ; then
@@ -208,7 +208,7 @@ fi
208208

209209

210210
# legacy mode: run with intermediate XML file
211-
COVERAGE_FILE=./functions.dat coverage xml -o functions.xml
211+
COVERAGE_FILE=./functions.dat python3-coverage xml -o functions.xml
212212
if [ 0 != $? ] ; then
213213
echo "coverage xml failed"
214214
exit 1

0 commit comments

Comments
 (0)