diff --git a/tools/pretty_tox.sh b/tools/pretty_tox.sh index b9fd556c..9699a6fd 100755 --- a/tools/pretty_tox.sh +++ b/tools/pretty_tox.sh @@ -7,5 +7,10 @@ set -o pipefail TESTRARGS=$1 -python setup.py testr --slowest --testr-args="--subunit $TESTRARGS" | subunit-trace -f - +python setup.py testr --testr-args="--subunit $TESTRARGS" | subunit-trace -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