diff --git a/tools/pretty_tox.sh b/tools/pretty_tox.sh index ff554c5cab..fb4e6d53b2 100755 --- a/tools/pretty_tox.sh +++ b/tools/pretty_tox.sh @@ -3,4 +3,10 @@ set -o pipefail TESTRARGS=$1 -python setup.py testr --slowest --testr-args="--subunit $TESTRARGS" | subunit-trace --no-failure-debug -f +python setup.py testr --testr-args="--subunit $TESTRARGS" | subunit-trace --no-failure-debug -f +retval=$? +# NOTE(mtreinish) The pipe above would eat the slowest display from pbr's testr +# wrapper so just manually print the slowest tests. +echo -e "\nSlowest Tests:\n" +testr slowest +exit $retval