From: Thomas Goirand Date: Tue, 1 Apr 2014 11:15:03 +0000 (+0800) Subject: Displays unit tests stats correcly. X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=b4b0b63d760338f0440221d8c2d1b4b7c1281215;p=openstack-build%2Fceilometer-build.git Displays unit tests stats correcly. Change-Id: I08083535ea14c8668a3d120d39c6f2321a2a8434 Rewritten-From: 13088377474c18251aca8cca1e4399cf2bb88c45 --- diff --git a/xenial/debian/rules b/xenial/debian/rules index a7c8a70..a8b2bb6 100755 --- a/xenial/debian/rules +++ b/xenial/debian/rules @@ -39,7 +39,10 @@ override_dh_auto_test: ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS))) rm -rf .testrepository testr init - bash -x ./setup-test-env.sh testr run --subunit 'tests\.(?!.*test_bin.*)' | subunit2pyunit || true + set -e && \ + TEMP_REZ=`mktemp -t` && \ + bash -x ./setup-test-env.sh testr run --subunit 'tests\.(?!.*test_bin.*)' | subunit2pyunit || true ; \ + cat $$TEMP_REZ | subunit-filter -s --no-passthrough | subunit-stats || true ; \ + rm -f $$TEMP_REZ ; testr slowest - testr last --subunit | subunit-filter -s --no-passthrough | subunit-stats endif