tooz/tools/pretty_tox.sh
Julien Danjou 09d5b3d45e tox: use pretty tox output
Change-Id: Ib8738de03820f94b9e68681631034b7847c39fbb
2016-11-14 21:38:00 +01: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