nova-powervm/tools/pretty_tox.sh
Kyle L. Henderson 02b5c9f0d0 Port over pretty_tox.sh from Nova
Nova has a bash script that uses the ostestr package to format
the output from tox in a 'pretty' format.  It makes it much more
readable.  pretty_tox.sh is pulled from Nova as-is and enabled
in tox.ini.

Change-Id: Ib90791b1333044c98e20444953d7ccab21cd62ba
2016-02-08 08:28:54 -06:00

17 lines
426 B
Bash
Executable File

#!/usr/bin/env bash
set -o pipefail
TESTRARGS=$1
# --until-failure is not compatible with --subunit see:
#
# https://bugs.launchpad.net/testrepository/+bug/1411804
#
# this work around exists until that is addressed
if [[ "$TESTARGS" =~ "until-failure" ]]; then
python setup.py testr --slowest --testr-args="$TESTRARGS"
else
python setup.py testr --slowest --testr-args="--subunit $TESTRARGS" | subunit-trace -f
fi