X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=xenial%2Fdebian%2Frules;h=0347473d48b2d35c369d1b4ce23a8b130b0766db;hb=dbb32b03beee258af9d843d6ab530d5b4efc80d8;hp=9335d2d64a683b0ee8435ff8b30736806a88ae55;hpb=56b57d307f192530f44bbdd482f39dcb344334da;p=openstack-build%2Fceilometer-build.git diff --git a/xenial/debian/rules b/xenial/debian/rules index 9335d2d..0347473 100755 --- a/xenial/debian/rules +++ b/xenial/debian/rules @@ -11,6 +11,7 @@ export OSLO_PACKAGE_VERSION=$(VERSION) override_dh_clean: dh_clean + rm -rf .testrepository rm -rf ceilometer.egg-info rm -f debian/ceilometer-common.config debian/ceilometer-common.postinst debian/ceilometer-api.config debian/ceilometer-api.postinst @@ -19,7 +20,6 @@ override_dh_install: install -D -m 0644 $(CURDIR)/etc/ceilometer/ceilometer.conf.sample $(CURDIR)/debian/ceilometer-common/usr/share/ceilometer-common/ceilometer.conf install -D -m 0644 $(CURDIR)/etc/ceilometer/policy.json $(CURDIR)/debian/ceilometer-common/usr/share/ceilometer-common/policy.json install -D -m 0644 $(CURDIR)/etc/ceilometer/sources.json $(CURDIR)/debian/ceilometer-common/usr/share/ceilometer-common/sources.json - install -D -m 0644 $(CURDIR)/etc/ceilometer/pipeline.yaml $(CURDIR)/debian/ceilometer-common/usr/share/ceilometer-common/pipeline.yaml override_dh_auto_build: dh_auto_build @@ -34,9 +34,14 @@ override_dh_auto_clean: rm -rf debian/ceilometer-common.postinst find . -iname '*.pyc' -delete -ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS))) override_dh_auto_test: - bash -x ./setup-test-env.sh python setup.py testr --slowest --testr-args='tests\.(?!.*test_bin.*)' || true - #./run-tests.sh || true - #PYTHONPATH=. nosetests -P || true +ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS))) + rm -rf .testrepository + testr init + set -e && \ + TEMP_REZ=`mktemp -t` && \ + bash -x ./setup-test-env.sh testr run --subunit 'tests\.(?!.*test_bin.*)' | tee $$TEMP_REZ | subunit2pyunit || true ; \ + cat $$TEMP_REZ | subunit-filter -s --no-passthrough | subunit-stats || true ; \ + rm -f $$TEMP_REZ ; + testr slowest endif