Uncruft testr runs.
authorThomas Goirand <thomas@goirand.fr>
Sun, 30 Mar 2014 08:46:08 +0000 (16:46 +0800)
committerThomas Goirand <thomas@goirand.fr>
Sun, 30 Mar 2014 08:46:08 +0000 (16:46 +0800)
Change-Id: I52832d15a74a751d3c8bfd97cb642d865844f88c

Rewritten-From: 4c093a5527236fcfed175aef4051f039aff0e333

trusty/debian/rules

index 5cfd5d2668bd989fc70a07a88cfca1d32f07b444..d7f7d6dcdb554fddbac5abee594388d040411453 100755 (executable)
@@ -37,12 +37,9 @@ override_dh_auto_clean:
 
 override_dh_auto_test:
 ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS)))
-       set -e && TEMP_REZ=`mktemp -t` && \
-               rm -rf .testrepository ; \
-               testr init ; \
-               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
-       #./run-tests.sh || true
-       #PYTHONPATH=. nosetests -P || true
+       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
 endif