Package: python-os-testr
Version: 1.0.0-5
Severity: serious
Tags: patch
User: [email protected]
Usertags: origin-ubuntu eoan ubuntu-patch

Dear maintainers,

The python-os-testr autopkgtests now fail because they have not been updated
in the face of the removal of the python2 package.

The attached patch has been uploaded to Ubuntu and now gives passing tests
as seen at
<http://autopkgtest.ubuntu.com/packages/p/python-os-testr/eoan/amd64>.

Thanks for considering,
-- 
Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
Ubuntu Developer                                   https://www.debian.org/
[email protected]                                     [email protected]
diff -Nru python-os-testr-1.0.0/debian/tests/unittests 
python-os-testr-1.0.0/debian/tests/unittests
--- python-os-testr-1.0.0/debian/tests/unittests        2019-08-07 
00:04:40.000000000 -0700
+++ python-os-testr-1.0.0/debian/tests/unittests        2019-08-26 
09:57:18.000000000 -0700
@@ -1,23 +1,13 @@
 #!/bin/sh
 
-PYTHONS=$(pyversions -vr)
 PYTHON3S=$(py3versions -vr)
 
 BINARIES="ostestr subunit-trace subunit2html"
 
 set -e
 echo "===> Running tests"
-for i in ${PYTHONS} ${PYTHON3S}; do
+for i in ${PYTHON3S}; do
   PYMAJOR=`echo $i | cut -d'.' -f1`
   echo "===> Testing with python$i (python$PYMAJOR)"
-  for bin in $BINARIES; do
-    update-alternatives --set $bin /usr/bin/python$PYMAJOR-$bin
-  done
-  rm -rf .testrepository
-  testr-python$PYMAJOR init
-  TEMP_REZ=`mktemp -t` 
-  PYTHONPATH=`pwd` PYTHON=python$i testr-python$PYMAJOR run --subunit | tee 
$TEMP_REZ | subunit2pyunit ; \
-  cat $TEMP_REZ | subunit-filter -s --no-passthrough | subunit-stats ; \
-  rm -f $TEMP_REZ ; \
-  testr-python$PYMAJOR slowest ; \
+  PYTHON=python${i} ostestr
 done

Reply via email to