Skip to content

Commit d34dbc5

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

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

bin/py2lcov

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ Example:
176176
while os.path.exists(xml):
177177
xml = base + '.xml%d' % suffix
178178
suffix += 1
179-
cmd = 'COVERAGE_FILE=%s coverage xml -o %s' % (f, xml)
179+
cmd = 'COVERAGE_FILE=%s python3-coverage xml -o %s' % (f, xml)
180180
try:
181181
#x = subprocess.run(cmd, capture_output=True, shell=True, check=True)
182182
x = subprocess.run(cmd, shell=True, check=True, stdout=True, stderr=True)

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)