Code Review
/
openstack-build
/
ceilometer-build.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Displays unit tests stats correcly.
[openstack-build/ceilometer-build.git]
/
xenial
/
debian
/
rules
diff --git
a/xenial/debian/rules
b/xenial/debian/rules
index a7c8a708e5c991b7549cca01f5689af7770cc23e..a8b2bb685f4b93258fda35006af604a12940fb4e 100755
(executable)
--- 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
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 slowest
- testr last --subunit | subunit-filter -s --no-passthrough | subunit-stats
endif
endif