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:
Brant Knudson 2015-01-07 16:05:24 -06:00
parent 75e9dda41c
commit 8c76fbe02d
3 changed files with 16 additions and 1 deletions

View File

@ -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

12
tools/pretty_tox.sh Normal file
View File

@ -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

View File

@ -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]