Switch to stestr
stestr is actively maintained. OpenStack is migrating to stestr, so we should follow suit. Change-Id: I1b958681cbf53281c9da91c747c9a2cfe2beccf3
This commit is contained in:
parent
f179167e9a
commit
9cae8f3b2b
3
.stestr.conf
Normal file
3
.stestr.conf
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
[DEFAULT]
|
||||||
|
test_path=deckhand/tests/unit
|
||||||
|
top_dir=./
|
@ -1,7 +0,0 @@
|
|||||||
[DEFAULT]
|
|
||||||
test_command=OS_STDOUT_CAPTURE=${OS_STDOUT_CAPTURE:-1} \
|
|
||||||
OS_STDERR_CAPTURE=${OS_STDERR_CAPTURE:-1} \
|
|
||||||
OS_TEST_TIMEOUT=${OS_TEST_TIMEOUT:-60} \
|
|
||||||
${PYTHON:-python} -m subunit.run discover -t ./ ${OS_TEST_PATH:-./deckhand/tests/unit} $LISTOPT $IDOPTION
|
|
||||||
test_id_option=--load-list $IDFILE
|
|
||||||
test_list_option=--list
|
|
@ -20,4 +20,4 @@ set -eo pipefail
|
|||||||
|
|
||||||
TESTRARGS=$1
|
TESTRARGS=$1
|
||||||
|
|
||||||
python setup.py testr --slowest --testr-args="--subunit --concurrency=1 $TESTRARGS" | subunit-trace -f
|
stestr run --concurrency=1 --slowest $TESTRARGS
|
||||||
|
@ -33,8 +33,8 @@ export DATABASE_URL=postgresql+psycopg2://$(whoami):password@$POSTGRES_IP:5432/d
|
|||||||
set -e
|
set -e
|
||||||
posargs=$@
|
posargs=$@
|
||||||
if [ ${#posargs} -ge 1 ]; then
|
if [ ${#posargs} -ge 1 ]; then
|
||||||
ostestr --concurrency 1 --regex ${posargs}
|
stestr run --concurrency=1 ${posargs}
|
||||||
else
|
else
|
||||||
ostestr --concurrency 1
|
stestr run --concurrency=1
|
||||||
fi
|
fi
|
||||||
set +e
|
set +e
|
||||||
|
6
tox.ini
6
tox.ini
@ -21,7 +21,8 @@ commands =
|
|||||||
[testenv:py27]
|
[testenv:py27]
|
||||||
commands =
|
commands =
|
||||||
{[testenv]commands}
|
{[testenv]commands}
|
||||||
ostestr --regex '{posargs}'
|
stestr run {posargs}
|
||||||
|
stestr slowest
|
||||||
|
|
||||||
[testenv:py27-postgresql]
|
[testenv:py27-postgresql]
|
||||||
commands =
|
commands =
|
||||||
@ -31,7 +32,8 @@ commands =
|
|||||||
[testenv:py35]
|
[testenv:py35]
|
||||||
commands =
|
commands =
|
||||||
{[testenv]commands}
|
{[testenv]commands}
|
||||||
ostestr --regex '{posargs}'
|
stestr run {posargs}
|
||||||
|
stestr slowest
|
||||||
|
|
||||||
[testenv:py35-postgresql]
|
[testenv:py35-postgresql]
|
||||||
commands =
|
commands =
|
||||||
|
Loading…
Reference in New Issue
Block a user