diff options
author | Matthew Treinish <mtreinish@kortar.org> | 2015-01-11 16:53:21 -0500 |
---|---|---|
committer | Matthew Treinish <mtreinish@kortar.org> | 2015-01-11 16:55:30 -0500 |
commit | 9a510e85ce38b58f6de771de84a10db2bbe60c1c (patch) | |
tree | 4b08cdba0deaec12c825d1a6a3d2358323bdb7a1 | |
parent | a6aefaa34b5a49ab4054a96e3ca03b9b67f5e75e (diff) | |
download | oslo-db-9a510e85ce38b58f6de771de84a10db2bbe60c1c.tar.gz |
Fix slowest test output after test run
This commit fixes the output from pretty_tox.sh so that the testr
slowest output is gobbled up by the pipe into subunit-trace.
Change-Id: I4e23cb3c3773e58a297416c1f51996fef059330a
-rwxr-xr-x | tools/pretty_tox.sh | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/tools/pretty_tox.sh b/tools/pretty_tox.sh index b9fd556..9699a6f 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 |