Merge "migrate to stestr"

This commit is contained in:
Zuul 2018-03-06 00:26:26 +00:00 committed by Gerrit Code Review
commit a1bfbe9256
3 changed files with 7 additions and 10 deletions

3
.stestr.conf Normal file
View File

@ -0,0 +1,3 @@
[DEFAULT]
test_path=./vmware_nsx/tests/unit
top_dir=./

View File

@ -1,8 +0,0 @@
#!/bin/sh
# preserve old behavior of using an arg as a regex when '--' is not present
case $@ in
(*--*) ostestr $@;;
('') ostestr;;
(*) ostestr --regex "$@"
esac

View File

@ -13,7 +13,8 @@ deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
whitelist_externals = sh
commands =
{toxinidir}/tools/ostestr_compat_shim.sh {posargs}
stestr run {posargs}
stestr slowest
# there is also secret magic in ostestr which lets you run in a fail only
# mode. To do this define the TRACE_FAILONLY environmental variable.
@ -41,7 +42,8 @@ sitepackages=True
deps =
{[testenv:functional]deps}
commands =
{toxinidir}/tools/ostestr_compat_shim.sh {posargs}
stestr run {posargs}
stestr slowest
[tox:jenkins]
sitepackages = True