[PKG-Openstack-devel] Bug#902019: python-tooz: Enable unit tests
Corey Bryant
corey.bryant at canonical.com
Thu Jun 21 15:56:42 BST 2018
Package: python-tooz
Version: 1.58.0-2
Severity: normal
Tags: patch
User: ubuntu-devel at lists.ubuntu.com
Usertags: origin-ubuntu cosmic ubuntu-patch
Dear Maintainer,
In Ubuntu, the attached patch was applied to achieve the following:
* d/rules: Enable unit test execution.
Thanks for considering the patch.
-- System Information:
Debian Release: buster/sid
APT prefers cosmic
APT policy: (500, 'cosmic'), (500, 'bionic-security')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.15.0-23-generic (SMP w/4 CPU cores)
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 /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
-------------- next part --------------
diff -Nru python-tooz-1.58.0/debian/rules python-tooz-1.58.0/debian/rules
--- python-tooz-1.58.0/debian/rules 2017-11-01 21:20:02.000000000 -0400
+++ python-tooz-1.58.0/debian/rules 2018-06-21 10:54:55.000000000 -0400
@@ -11,23 +11,10 @@
override_dh_auto_test:
ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS)))
- echo "Temporarily not run unit tests until feedback from upstream"
-# chmod +x $(CURDIR)/debian/check-memcached-off $(CURDIR)/debian/check-memcached-runs
-# $(CURDIR)/debian/check-memcached-runs
-# @echo "===> Running tests"
-# set -e ; set -x ; for i in 2.7 ${PYTHON3S} ; do \
-# rm -rf /tmp/groups ; \
-# PYMAJOR=`echo $$i | cut -d'.' -f1` ; \
-# echo "===> Testing with python$$i (python$$PYMAJOR)" ; \
-# rm -rf .testrepository ; \
-# testr-python$$PYMAJOR init ; \
-# TEMP_REZ=`mktemp -t` ; \
-# PYTHONPATH=$(CURDIR) PYTHON=python$$i bash ./debian/setup-tests.sh 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 ; \
-# done
-# $(CURDIR)/debian/check-memcached-off
+ chmod +x $(CURDIR)/debian/check-memcached-off $(CURDIR)/debian/check-memcached-runs
+ $(CURDIR)/debian/check-memcached-runs
+ TOOZ_TEST_URL="ipc://" pkgos-dh_auto_test
+ $(CURDIR)/debian/check-memcached-off
endif
override_dh_clean:
More information about the Openstack-devel
mailing list