9a510e85ce
This commit fixes the output from pretty_tox.sh so that the testr slowest output is gobbled up by the pipe into subunit-trace. Change-Id: I4e23cb3c3773e58a297416c1f51996fef059330a
17 lines
454 B
Bash
Executable File
17 lines
454 B
Bash
Executable File
#!/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" | 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
|