Matthew Treinish | 1ee4398 | 2013-12-06 21:08:31 +0000 | [diff] [blame] | 1 | #!/usr/bin/env bash |
| 2 | |
Matthew Treinish | 68c7871 | 2016-07-28 14:47:27 -0400 | [diff] [blame] | 3 | echo "WARNING: This script is deprecated and will be removed in the near future. Please migrate to tempest run or another method of launching a test runner" |
| 4 | |
Matthew Treinish | 1ee4398 | 2013-12-06 21:08:31 +0000 | [diff] [blame] | 5 | set -o pipefail |
Matthew Treinish | 8551278 | 2013-07-18 15:53:30 -0400 | [diff] [blame] | 6 | |
| 7 | TESTRARGS=$1 |
Matthew Treinish | 16b6826 | 2014-12-05 19:06:31 -0500 | [diff] [blame] | 8 | python setup.py testr --testr-args="--subunit $TESTRARGS" | subunit-trace --no-failure-debug -f |
| 9 | retval=$? |
| 10 | # NOTE(mtreinish) The pipe above would eat the slowest display from pbr's testr |
| 11 | # wrapper so just manually print the slowest tests. |
| 12 | echo -e "\nSlowest Tests:\n" |
| 13 | testr slowest |
| 14 | exit $retval |