summaryrefslogtreecommitdiff
path: root/tools/pretty_tox.sh
blob: 794ff124a7707c9da0a404b20046fb5a2406d9a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/env bash

# return nonzero exit status of rightmost command, so that we
# get nonzero exit on test failure without halting subunit-trace
set -o pipefail


TESTRARGS=$1

python setup.py testr --testr-args="--subunit $TESTRARGS  --concurrency=1" | 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