From 7f220173e668373ef8148259b5e124d7b5ef8d6c 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 --- trusty/debian/rules | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/trusty/debian/rules b/trusty/debian/rules index a7c8a70..a8b2bb6 100755 --- a/trusty/debian/rules +++ b/trusty/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.45.2