From b4b0b63d760338f0440221d8c2d1b4b7c1281215 Mon Sep 17 00:00:00 2001 From: Thomas Goirand Date: Tue, 1 Apr 2014 19:15:03 +0800 Subject: [PATCH] Displays unit tests stats correcly. Change-Id: I08083535ea14c8668a3d120d39c6f2321a2a8434 Rewritten-From: 13088377474c18251aca8cca1e4399cf2bb88c45 --- xenial/debian/rules | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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 -- 2.32.3