summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2015-01-12 17:21:02 +0000
committerGerrit Code Review <review@openstack.org>2015-01-12 17:21:02 +0000
commit98cdceb1ec7b8242472a2b929e086a362b8dad3d (patch)
treef3f8e17321b4424cb5b832285e1850c294447019
parentb84d921ac8c29dadd4f5627dc7a78b2c01b7cdc3 (diff)
parent9a510e85ce38b58f6de771de84a10db2bbe60c1c (diff)
downloadoslo-db-1.4.0.tar.gz
Merge "Fix slowest test output after test run"1.4.0
-rwxr-xr-xtools/pretty_tox.sh9
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