Merge "work around for until-failure"

This commit is contained in:
Jenkins 2015-02-07 13:35:28 +00:00 committed by Gerrit Code Review
commit 45e4d3a574
1 changed files with 11 additions and 1 deletions

View File

@ -3,4 +3,14 @@
set -o pipefail
TESTRARGS=$1
python setup.py testr --slowest --testr-args="--subunit $TESTRARGS" | subunit-trace -f
# --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