From 8719d8f401b43795f755a6cd97b59e480f1549a7 Mon Sep 17 00:00:00 2001 From: Thomas Goirand Date: Thu, 30 Jul 2015 20:11:28 +0000 Subject: [PATCH] Blacklist taskflow.tests.test_examples.ExamplesTestCase.test_99_bottles, see https://bugs.launchpad.net/taskflow/+bug/1479958 --- debian/changelog | 3 +++ debian/rules | 16 ++++++++++------ 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/debian/changelog b/debian/changelog index 22d1c3b5..f403a555 100644 --- a/debian/changelog +++ b/debian/changelog @@ -3,6 +3,9 @@ python-taskflow (1.17.0-1) experimental; urgency=medium * New upstream release. * Fixed (build-)depends for this release. * Disabled unit test patch. + * Black list a unit test: + taskflow.tests.test_examples.ExamplesTestCase.test_99_bottles + See LP bug: https://bugs.launchpad.net/taskflow/+bug/1479958 -- Thomas Goirand Thu, 30 Jul 2015 15:21:31 +0000 diff --git a/debian/rules b/debian/rules index ad1768e9..bab32ee6 100755 --- a/debian/rules +++ b/debian/rules @@ -14,12 +14,16 @@ override_dh_clean: override_dh_auto_test: ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS))) - rm -rf .testrepository - testr init - set -e ; \ + @echo "===> Running tests" + set -e ; set -x ; for i in 2.7 $(PYTHON3S) ; do \ + 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=. testr run --subunit | tee $$TEMP_REZ | subunit2pyunit ; \ - testr slowest ; \ + PYTHONPATH=$(CURDIR) PYTHON=python$$i testr-python$$PYMAJOR run --subunit 'taskflow\.tests\.(?!.*test_examples\.ExamplesTestCase\.test_99_bottles.*)' | tee $$TEMP_REZ | subunit2pyunit ; \ cat $$TEMP_REZ | subunit-filter -s --no-passthrough | subunit-stats ; \ - rm -f $$TEMP_REZ + rm -f $$TEMP_REZ ; \ + testr-python$$PYMAJOR slowest ; \ + done endif