X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=xenial%2Fdebian%2Frules;h=5cfd5d2668bd989fc70a07a88cfca1d32f07b444;hb=3ef3e28c784626a2165d31fd05c5b76acd57c2ef;hp=a3a99ccab6c553cfe308dfd106b04b582c714b37;hpb=b3e4bd5c45781d626563512d93dc507eae537b57;p=openstack-build%2Fceilometer-build.git diff --git a/xenial/debian/rules b/xenial/debian/rules index a3a99cc..5cfd5d2 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 @@ -37,7 +38,9 @@ override_dh_auto_clean: override_dh_auto_test: ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS))) set -e && TEMP_REZ=`mktemp -t` && \ - bash -x ./setup-test-env.sh python setup.py testr --slowest --testr-args='--subunit --omit=test_bin.py ' | tee $$TEMP_REZ | subunit2pyunit || true ; \ + rm -rf .testrepository ; \ + testr init ; \ + 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 #./run-tests.sh || true