From 16b6826b9474cfa065a3ce24b22ee3a363716d21 Mon Sep 17 00:00:00 2001 From: Matthew Treinish Date: Fri, 5 Dec 2014 19:06:31 -0500 Subject: [PATCH] Fix slowest test output after test run This commit fixes the output from pretty_tox.sh so that the testr slowest output isn't gobbled up by the pipe into subunit-trace. Change-Id: I11e8fe80c35a1d3a90a4d7c8bf2b36c4114b5cc6 --- tools/pretty_tox.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tools/pretty_tox.sh b/tools/pretty_tox.sh index ff554c5ca..fb4e6d53b 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