2014-09-16 11:49:11 -04:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
set -o pipefail
|
|
|
|
|
|
|
|
TESTRARGS=$1
|
2015-01-16 14:24:29 -05:00
|
|
|
|
|
|
|
# --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
|