migrate to stestr
ostestr is no longer installed by default by infra and will be totally removed longer term; stestr [1] is its replacement. This is the reason out gate is failing with the following today: nsx/tools/ostestr_compat_shim.sh: ostestr: not found This patch moves us to stestr by: - Updating tox.ini to use stestr rather than call ostestr_compat_shim.sh and in turn ostestr. - Removing ostestr_compat_shim.sh as its no longer used. For more details on stestr see [1]. Also note that this is a quick migration to stestr to get the gate working; additional tweaks may come up. [1] http://stestr.readthedocs.io/en/latest/MANUAL.html Change-Id: I9a871d3542c2f2615d757c0009ea3d6695f0e3f7
This commit is contained in:
parent
2825e30777
commit
7223bbf963
3
.stestr.conf
Normal file
3
.stestr.conf
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
[DEFAULT]
|
||||||
|
test_path=./vmware_nsx/tests/unit
|
||||||
|
top_dir=./
|
@ -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
|
|
6
tox.ini
6
tox.ini
@ -13,7 +13,8 @@ deps = -r{toxinidir}/requirements.txt
|
|||||||
-r{toxinidir}/test-requirements.txt
|
-r{toxinidir}/test-requirements.txt
|
||||||
whitelist_externals = sh
|
whitelist_externals = sh
|
||||||
commands =
|
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
|
# 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.
|
# mode. To do this define the TRACE_FAILONLY environmental variable.
|
||||||
|
|
||||||
@ -41,7 +42,8 @@ sitepackages=True
|
|||||||
deps =
|
deps =
|
||||||
{[testenv:functional]deps}
|
{[testenv:functional]deps}
|
||||||
commands =
|
commands =
|
||||||
{toxinidir}/tools/ostestr_compat_shim.sh {posargs}
|
stestr run {posargs}
|
||||||
|
stestr slowest
|
||||||
|
|
||||||
[tox:jenkins]
|
[tox:jenkins]
|
||||||
sitepackages = True
|
sitepackages = True
|
||||||
|
Loading…
Reference in New Issue
Block a user