Add unittest like output for testr-full in tox

This commit adds real time output similar to that when running with
nose so that it's possible to watch the status of the job when using
testr with tempest.

Change-Id: I7a65be714627692ad80b3640af0ee617fd4697a9
This commit is contained in:
Matthew Treinish 2013-07-18 15:53:30 -04:00
parent 0e2d8aaea4
commit 8551278461
2 changed files with 5 additions and 1 deletions

4
tools/pretty_tox.sh Executable file
View File

@ -0,0 +1,4 @@
#!/bin/sh
TESTRARGS=$1
python setup.py testr --slowest --testr-args="--subunit $TESTRARGS" | subunit2pyunit

View File

@ -30,7 +30,7 @@ commands =
sitepackages = True
setenv = VIRTUAL_ENV={envdir}
commands =
python setup.py testr --slowest --testr-args='tempest.api tempest.scenario tempest.thirdparty tempest.cli'
sh tools/pretty_tox.sh 'tempest.api tempest.scenario tempest.thirdparty tempest.cli'
[testenv:smoke]
sitepackages = True