Better testr/subunit output.
authorThomas Goirand <thomas@goirand.fr>
Sun, 30 Mar 2014 05:26:09 +0000 (13:26 +0800)
committerThomas Goirand <thomas@goirand.fr>
Sun, 30 Mar 2014 06:04:26 +0000 (14:04 +0800)
Rewritten-From: e6efeb5cc76d0da39160c1ec955748db0cf78ff6

trusty/debian/changelog
trusty/debian/control
trusty/debian/rules

index 0b90df00e52dda25bb6ce4bce5c518c43a30b89b..fcec010ceb2e6780030738cecdf88c45178e0f2c 100644 (file)
@@ -1,3 +1,9 @@
+ceilometer (2014.1~b3-2) UNRELEASED; urgency=low
+
+  * Better testr/subunit output.
+
+ -- Thomas Goirand <zigo@debian.org>  Sun, 30 Mar 2014 13:25:59 +0800
+
 ceilometer (2014.1~b3-1) experimental; urgency=low
 
   * New upstream release (Icehouse beta 3).
index 3d7c2bf64c15e25b7dfe6b409e827c6e899940fe..7bae21d1183455a7a478e05d616af07860a6c51c 100644 (file)
@@ -68,8 +68,9 @@ Build-Depends-Indep: alembic (>= 0.4.2),
                      python-webob (>= 1.2.3),
                      python-wsme (>= 0.6),
                      python-yaml,
+                     subunit (>= 0.0.18),
                      testrepository (>= 0.0.18)
-Standards-Version: 3.9.4
+Standards-Version: 3.9.5
 Vcs-Browser: http://anonscm.debian.org/gitweb/?p=openstack/ceilometer.git;a=summary
 Vcs-Git: git://anonscm.debian.org/openstack/ceilometer.git
 Homepage: http://wiki.openstack.org/Ceilometer
index 9335d2d64a683b0ee8435ff8b30736806a88ae55..a3a99ccab6c553cfe308dfd106b04b582c714b37 100755 (executable)
@@ -34,9 +34,12 @@ 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
+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 ; \
+               cat $$TEMP_REZ | subunit-filter -s --no-passthrough | subunit-stats || true ; \
+               rm -f $$TEMP_REZ
        #./run-tests.sh || true
        #PYTHONPATH=. nosetests -P || true
 endif