Package: python-autopage
Version: Unit test suite enabled for package build
Severity: normal
Tags: patch
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu jammy ubuntu-patch

Dear Maintainer,

In Ubuntu, the attached patch was applied to achieve the following:

  * Enable unit testing as part of package build:
    - d/rules: Enable test suite execution.
    - d/control: Add missing BD on python3-fixtures.

Thanks for considering the patch.


-- System Information:
Debian Release: bookworm/sid
  APT prefers jammy
  APT policy: (500, 'jammy')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.13.0-20-generic (SMP w/4 CPU threads)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_GB:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
diff -Nru python-autopage-0.4.0/debian/control 
python-autopage-0.4.0/debian/control
--- python-autopage-0.4.0/debian/control        2021-09-29 11:25:29.000000000 
+0100
+++ python-autopage-0.4.0/debian/control        2021-11-24 14:10:26.000000000 
+0000
@@ -9,6 +9,7 @@
  dh-python,
  openstack-pkg-tools,
  python3-all,
+ python3-fixtures,
  python3-setuptools,
 Standards-Version: 4.6.0
 Vcs-Browser: https://salsa.debian.org/openstack-team/python/python-autopage
diff -Nru python-autopage-0.4.0/debian/rules python-autopage-0.4.0/debian/rules
--- python-autopage-0.4.0/debian/rules  2021-09-29 11:25:29.000000000 +0100
+++ python-autopage-0.4.0/debian/rules  2021-11-24 13:58:54.000000000 +0000
@@ -18,16 +18,9 @@
        pkgos-dh_auto_install --no-py2 --in-tmp
 
 
+override_dh_auto_test:
 ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS)))
-       echo "No tests for now..."
-#      set -e ; for pyvers in $(PYTHON3S); do \
-#              python$$pyvers setup.py test ; \
-#      done
+       set -e ; for pyvers in $(PYTHON3S); do \
+               python$$pyvers setup.py test ; \
+       done
 endif
-
-
-override_dh_auto_test:
-       echo "Do nothing..."
-
-
-

Reply via email to