Switch to stestr and fixing gate

Change-Id: I04097dbb59197a519051f1f5c88f0890ba76c48e
This commit is contained in:
Erik Olof Gunnar Andersson 2018-08-12 12:59:23 -07:00
parent f69ba5b7c6
commit cc0647ce1a
2 changed files with 1 additions and 17 deletions

View File

@ -1,16 +0,0 @@
#!/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

View File

@ -29,7 +29,7 @@ deps =
{[testenv]deps}
commands =
find . -type f -name "*.py[c|o]" -delete
bash tools/pretty_tox.sh '{posargs}'
stestr run {posargs}
[testenv:docs]
commands = python setup.py build_sphinx