Use subunit-trace from tempest-lib
This makes the test output look like nova's, for consistency. Change-Id: I24887521d5a3c7d768d77e07e40ab4468e77c9b9
This commit is contained in:
parent
75e9dda41c
commit
8c76fbe02d
|
@ -52,3 +52,6 @@ testscenarios>=0.4
|
|||
oslosphinx>=2.2.0 # Apache-2.0
|
||||
|
||||
stevedore>=1.1.0 # Apache-2.0
|
||||
|
||||
tempest-lib>=0.2.0
|
||||
|
||||
|
|
|
@ -0,0 +1,12 @@
|
|||
#!/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
|
@ -9,7 +9,7 @@ install_command = pip install -U {opts} {packages}
|
|||
setenv = VIRTUAL_ENV={envdir}
|
||||
deps = -r{toxinidir}/requirements.txt
|
||||
-r{toxinidir}/test-requirements.txt
|
||||
commands = python setup.py testr --slowest --testr-args='{posargs}'
|
||||
commands = bash tools/pretty_tox.sh '{posargs}'
|
||||
whitelist_externals = bash
|
||||
|
||||
[testenv:py33]
|
||||
|
|
Loading…
Reference in New Issue