997855db3b
This changeset adds the pretty_tox script runner to SQLAlchemy-migrate, so that current test runs can be viewed clearly. Change-Id: I3884703e24cb636983a0202c46899c772419d401
17 lines
471 B
Bash
Executable File
17 lines
471 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 --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
|