Merge "Add pretty_tox subunit wrapper"
This commit is contained in:
commit
5dbe836e7b
@ -17,3 +17,4 @@ testtools>=0.9.36,!=1.2.0
|
||||
testrepository>=0.0.18
|
||||
testscenarios>=0.4
|
||||
WebTest>=2.0
|
||||
tempest-lib>=0.1.0
|
||||
|
6
tools/pretty_tox.sh
Executable file
6
tools/pretty_tox.sh
Executable 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
|
4
tox.ini
4
tox.ini
@ -14,7 +14,9 @@ deps = -r{toxinidir}/requirements.txt
|
||||
# Note the hash seed is set to 0 until designate can be tested with a
|
||||
# random hash seed successfully.
|
||||
setenv = PYTHONHASHSEED=0
|
||||
commands = python setup.py testr --slowest --testr-args='{posargs}'
|
||||
whitelist_externals = sh
|
||||
commands =
|
||||
sh tools/pretty_tox.sh '{posargs}'
|
||||
|
||||
[testenv:cover]
|
||||
commands = python setup.py testr --coverage --testr-args='{posargs}'
|
||||
|
Loading…
x
Reference in New Issue
Block a user