Matthew Treinish | 1ee4398 | 2013-12-06 21:08:31 +0000 | [diff] [blame] | 1 | #!/usr/bin/env bash |
| 2 | |
| 3 | set -o pipefail |
Matthew Treinish | 8551278 | 2013-07-18 15:53:30 -0400 | [diff] [blame] | 4 | |
| 5 | TESTRARGS=$1 |
Matthew Treinish | 16b6826 | 2014-12-05 19:06:31 -0500 | [diff] [blame^] | 6 | python setup.py testr --testr-args="--subunit $TESTRARGS" | subunit-trace --no-failure-debug -f |
| 7 | retval=$? |
| 8 | # NOTE(mtreinish) The pipe above would eat the slowest display from pbr's testr |
| 9 | # wrapper so just manually print the slowest tests. |
| 10 | echo -e "\nSlowest Tests:\n" |
| 11 | testr slowest |
| 12 | exit $retval |