work around for until-failure
testr run --until-failure --subunit does not actually fail when a test fails, upstream bug filed at https://bugs.launchpad.net/testrepository/+bug/1411804 Work around this by reverting to old style version when running in --until-failure mode. Change-Id: Ic2b26c423e4e6c729bb1357bc901fdf1afdb083f
This commit is contained in:
parent
5bbb97f7be
commit
7604179d1d
@ -3,4 +3,14 @@
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user