Using testrepository instead of nose.
This commit is contained in:
1
debian/changelog
vendored
1
debian/changelog
vendored
@@ -2,6 +2,7 @@ python-taskflow (0.1.3-2) unstable; urgency=medium
|
||||
|
||||
* Adds openstack-pkg-tools as build-depends. (Closes: #743070)
|
||||
* Standards-Version: is now 3.9.5
|
||||
* Using testrepository instead of nose.
|
||||
|
||||
-- Thomas Goirand <zigo@debian.org> Mon, 31 Mar 2014 11:15:22 +0800
|
||||
|
||||
|
||||
4
debian/control
vendored
4
debian/control
vendored
@@ -22,9 +22,6 @@ Build-depends-indep: alembic (>= 0.4.1),
|
||||
python-iso8601 (>= 0.1.8),
|
||||
python-mock (>= 1.0),
|
||||
python-networkx (>= 1.8),
|
||||
python-nose,
|
||||
python-nose-exclude,
|
||||
python-openstack.nose-plugin (>= 0.7),
|
||||
python-six (>= 1.4.1),
|
||||
python-sqlalchemy (>= 0.7.8),
|
||||
python-stevedore (>= 0.12),
|
||||
@@ -32,6 +29,7 @@ Build-depends-indep: alembic (>= 0.4.1),
|
||||
python-testtools (>= 0.9.34),
|
||||
python-unittest2,
|
||||
python-zake,
|
||||
subunit (>= 0.0.18),
|
||||
testrepository (>= 0.0.17)
|
||||
Standards-Version: 3.9.5
|
||||
Vcs-Browser: http://anonscm.debian.org/gitweb/?p=openstack/python-taskflow.git
|
||||
|
||||
21
debian/rules
vendored
21
debian/rules
vendored
@@ -12,17 +12,14 @@ override_dh_clean:
|
||||
dh_clean -O--buildsystem=python_distutils
|
||||
find . -iname '*.pyc' -delete
|
||||
|
||||
ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS)))
|
||||
override_dh_auto_test:
|
||||
PYTHONPATH=. \
|
||||
LANG=en_US.UTF-8 \
|
||||
LANGUAGE=en_US:en \
|
||||
LC_ALL=C \
|
||||
NOSE_WITH_OPENSTACK=1 \
|
||||
NOSE_OPENSTACK_COLOR=1 \
|
||||
NOSE_OPENSTACK_RED=0.05 \
|
||||
NOSE_OPENSTACK_YELLOW=0.025 \
|
||||
NOSE_OPENSTACK_SHOW_ELAPSED=1 \
|
||||
NOSE_OPENSTACK_STDOUT=1 \
|
||||
nosetests --verbosity=2 || true
|
||||
ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS)))
|
||||
rm -rf .testrepository
|
||||
testr init
|
||||
set -e && \
|
||||
TEMP_REZ=`mktemp -t` && \
|
||||
PYTHONPATH=. testr run --subunit | tee $$TEMP_REZ | subunit2pyunit ; \
|
||||
testr slowest ; \
|
||||
cat $$TEMP_REZ | subunit-filter -s --no-passthrough | subunit-stats ; \
|
||||
rm -f $$TEMP_REZ
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user