taskflow/tools/pretty_tox.sh
Joshua Harlow 1267a2a04d Bring over pretty_tox.sh from nova/heat/others
Change-Id: Ie0373a30b6416eda26b9666c572f8c47089f7219
2015-02-21 20:37:13 -08:00

18 lines
444 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" | $(dirname $0)/subunit_trace.py -f
fi