1
0
Fork 0
mirror of https://github.com/sileht/bird-lg.git synced 2024-11-14 19:34:42 +01:00
bird-lg/tools/pretty_tox.sh

17 lines
426 B
Bash
Raw Permalink Normal View History

2016-10-09 07:45:17 +02:00
#!/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