Run the functional tests in a more verbose mode

Previously, the cli functional tests would not display each test case
as they ran. This fixes that, similar to how the api functional tests
do this.

Change-Id: I899bafa4923dc9c80cad35cdb1f86cbf2e93038d
This commit is contained in:
Paul Glass 2016-04-07 15:11:27 +00:00
parent a9385ac8f5
commit 040ff35eea
2 changed files with 8 additions and 1 deletions

6
tools/pretty_tox.sh Executable file
View File

@ -0,0 +1,6 @@
#! /bin/sh
TESTRARGS=$1
exec 3>&1
status=$(exec 4>&1 >&3; ( python setup.py testr --slowest --testr-args="--subunit $TESTRARGS"; echo $? >&4 ) | subunit-trace -f) && exit $status

View File

@ -14,10 +14,11 @@ deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
whitelist_externals = find
sh
commands =
find . -type f -name "*.pyc" -delete
python setup.py testr --testr-args='{posargs}'
sh tools/pretty_tox.sh '{posargs}'
passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
[testenv:flake8]