Package: python-oslo.versionedobjects Version: 1.35.1-1 Severity: normal Tags: patch User: ubuntu-de...@lists.ubuntu.com Usertags: origin-ubuntu eoan ubuntu-patch
Dear Maintainer, In Ubuntu, the attached patch was applied to achieve the following: * d/control: Enable autopkgtest-pkg-python testsuite. * d/rules: Run all unit tests. * d/t/python-ostestr: Run unit tests for dep8. Thanks for considering the patch. -- System Information: Debian Release: buster/sid APT prefers eoan APT policy: (500, 'eoan') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 5.0.0-15-generic (SMP w/4 CPU cores) Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled
diff -Nru python-oslo.versionedobjects-1.35.1/debian/control python-oslo.versionedobjects-1.35.1/debian/control --- python-oslo.versionedobjects-1.35.1/debian/control 2019-03-22 04:17:11.000000000 -0400 +++ python-oslo.versionedobjects-1.35.1/debian/control 2019-06-07 14:40:44.000000000 -0400 @@ -42,6 +42,7 @@ Vcs-Browser: https://salsa.debian.org/openstack-team/oslo/python-oslo.versionedobjects.git Vcs-Git: https://salsa.debian.org/openstack-team/oslo/python-oslo.versionedobjects.git Homepage: https://github.com/openstack/oslo.versionedobjects +Testsuite: autopkgtest-pkg-python Package: python-oslo.versionedobjects-doc Section: doc diff -Nru python-oslo.versionedobjects-1.35.1/debian/rules python-oslo.versionedobjects-1.35.1/debian/rules --- python-oslo.versionedobjects-1.35.1/debian/rules 2019-03-22 04:17:11.000000000 -0400 +++ python-oslo.versionedobjects-1.35.1/debian/rules 2019-06-07 14:40:44.000000000 -0400 @@ -17,7 +17,7 @@ override_dh_auto_test: ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS))) - pkgos-dh_auto_test --no-py2 '^(?!('"oslo_versionedobjects.tests.test_objects.TestObject.test_load_in_base.*|oslo_versionedobjects.tests.test_objects.TestRemoteObject.test_load_in_base.*"'))' + pkgos-dh_auto_test --no-py2 endif override_dh_sphinxdoc: diff -Nru python-oslo.versionedobjects-1.35.1/debian/tests/control python-oslo.versionedobjects-1.35.1/debian/tests/control --- python-oslo.versionedobjects-1.35.1/debian/tests/control 1969-12-31 19:00:00.000000000 -0500 +++ python-oslo.versionedobjects-1.35.1/debian/tests/control 2019-06-07 14:40:44.000000000 -0400 @@ -0,0 +1,3 @@ +Tests: python-ostestr +Depends: @, @builddeps@, python3-os-testr +Restrictions: allow-stderr, needs-recommends diff -Nru python-oslo.versionedobjects-1.35.1/debian/tests/python-ostestr python-oslo.versionedobjects-1.35.1/debian/tests/python-ostestr --- python-oslo.versionedobjects-1.35.1/debian/tests/python-ostestr 1969-12-31 19:00:00.000000000 -0500 +++ python-oslo.versionedobjects-1.35.1/debian/tests/python-ostestr 2019-06-07 14:40:44.000000000 -0400 @@ -0,0 +1,9 @@ +#!/bin/sh + +set -ex + +for py in $(py3versions -r 2>/dev/null) $(pyversions -r 2>/dev/null); do + echo "Testing with $py:" + PYTHON=$py ostestr + rm -rf .stestr +done