ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS)))
rm -rf .testrepository
testr init
- bash -x ./setup-test-env.sh testr run --subunit 'tests\.(?!.*test_bin.*)' | tee $$TEMP_REZ | subunit2pyunit || true
- test slowest
- testr last --subunit | subunit-filter -s --no-passthrough | subunit-stats
+ set -e && \
+ TEMP_REZ=`mktemp -t` && \
+ bash -x ./setup-test-env.sh testr run --subunit 'tests\.(?!.*test_bin.*)' | tee $$TEMP_REZ | subunit2pyunit || true ; \
+ cat $$TEMP_REZ | subunit-filter -s --no-passthrough | subunit-stats || true ; \
+ rm -f $$TEMP_REZ ;
+ testr slowest
endif