Use ostestr instead of the custom pretty_tox.sh
Switch to os-testr as wrapper for testr, instead of the custom script pretty_tox.sh. Change-Id: If10ac96ac32813714be2b83f895071820126dbd8
This commit is contained in:
parent
2db574de6d
commit
d9f896d430
|
@ -1,12 +0,0 @@
|
||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
set -o pipefail
|
|
||||||
|
|
||||||
TESTRARGS=$1
|
|
||||||
python setup.py testr --testr-args="--subunit $TESTRARGS" | subunit-trace -f
|
|
||||||
retval=$?
|
|
||||||
# NOTE(mtreinish) The pipe above would eat the slowest display from pbr's testr
|
|
||||||
# wrapper so just manually print the slowest tests.
|
|
||||||
echo -e "\nSlowest Tests:\n"
|
|
||||||
testr slowest
|
|
||||||
exit $retval
|
|
2
tox.ini
2
tox.ini
|
@ -11,7 +11,7 @@ deps = -r{toxinidir}/test-requirements.txt
|
||||||
.[ldap,memcache,mongodb]
|
.[ldap,memcache,mongodb]
|
||||||
commands =
|
commands =
|
||||||
find keystone -type f -name "*.pyc" -delete
|
find keystone -type f -name "*.pyc" -delete
|
||||||
bash tools/pretty_tox.sh '{posargs}'
|
ostestr '{posargs}'
|
||||||
whitelist_externals =
|
whitelist_externals =
|
||||||
bash
|
bash
|
||||||
find
|
find
|
||||||
|
|
Loading…
Reference in New Issue