Switch to using stestr
According to Openstack summit session [1] stestr is maintained project to which all Openstack projects should migrate. Let's switch it then. [1] https://etherpad.openstack.org/p/YVR-python-pti Change-Id: Ifb64df81f7684d5bf732afcbe594a38691a7286f Signed-off-by: Chuck Short <chucks@redhat.com>
This commit is contained in:
parent
4db1366605
commit
56e733f784
3
.gitignore
vendored
3
.gitignore
vendored
@ -27,6 +27,7 @@ cover/
|
|||||||
!.coveragerc
|
!.coveragerc
|
||||||
.tox
|
.tox
|
||||||
nosetests.xml
|
nosetests.xml
|
||||||
|
.stestr
|
||||||
.testrepository
|
.testrepository
|
||||||
.venv
|
.venv
|
||||||
|
|
||||||
@ -55,4 +56,4 @@ ChangeLog
|
|||||||
.*sw?
|
.*sw?
|
||||||
|
|
||||||
# Files created by releasenotes build
|
# Files created by releasenotes build
|
||||||
releasenotes/build
|
releasenotes/build
|
||||||
|
3
.stestr.conf
Normal file
3
.stestr.conf
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
[DEFAULT]
|
||||||
|
test_path=./masakari/tests/unit
|
||||||
|
top_dir=./
|
@ -50,7 +50,6 @@ networkx==1.11
|
|||||||
openstackdocstheme==1.18.1
|
openstackdocstheme==1.18.1
|
||||||
os-api-ref==1.4.0
|
os-api-ref==1.4.0
|
||||||
os-client-config==1.29.0
|
os-client-config==1.29.0
|
||||||
os-testr==1.0.0
|
|
||||||
oslo.cache==1.29.0
|
oslo.cache==1.29.0
|
||||||
oslo.concurrency==3.26.0
|
oslo.concurrency==3.26.0
|
||||||
oslo.config==5.2.0
|
oslo.config==5.2.0
|
||||||
@ -106,7 +105,7 @@ sqlalchemy-migrate==0.11.0
|
|||||||
SQLAlchemy==1.2.5
|
SQLAlchemy==1.2.5
|
||||||
sqlparse==0.2.4
|
sqlparse==0.2.4
|
||||||
statsd==3.2.2
|
statsd==3.2.2
|
||||||
stestr==2.0.0
|
stestr==1.0.0
|
||||||
stevedore==1.20.0
|
stevedore==1.20.0
|
||||||
taskflow==2.16.0
|
taskflow==2.16.0
|
||||||
Tempita==0.5.2
|
Tempita==0.5.2
|
||||||
|
@ -14,7 +14,7 @@ openstackdocstheme>=1.18.1 # Apache-2.0
|
|||||||
os-api-ref>=1.4.0 # Apache-2.0
|
os-api-ref>=1.4.0 # Apache-2.0
|
||||||
oslosphinx>=4.7.0 # Apache-2.0
|
oslosphinx>=4.7.0 # Apache-2.0
|
||||||
oslotest>=3.2.0 # Apache-2.0
|
oslotest>=3.2.0 # Apache-2.0
|
||||||
os-testr>=1.0.0 # Apache-2.0
|
stestr>=1.0.0 # Apache-2.0
|
||||||
requests-mock>=1.2.0 # Apache-2.0
|
requests-mock>=1.2.0 # Apache-2.0
|
||||||
testrepository>=0.0.18 # Apache-2.0/BSD
|
testrepository>=0.0.18 # Apache-2.0/BSD
|
||||||
testresources>=2.0.0 # Apache-2.0/BSD
|
testresources>=2.0.0 # Apache-2.0/BSD
|
||||||
|
7
tox.ini
7
tox.ini
@ -7,7 +7,6 @@ skipsdist = True
|
|||||||
usedevelop = True
|
usedevelop = True
|
||||||
install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages}
|
install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages}
|
||||||
setenv = VIRTUAL_ENV={envdir}
|
setenv = VIRTUAL_ENV={envdir}
|
||||||
OS_TEST_PATH=./masakari/tests/unit
|
|
||||||
LANGUAGE=en_US
|
LANGUAGE=en_US
|
||||||
LC_ALL=en_US.utf-8
|
LC_ALL=en_US.utf-8
|
||||||
deps = -r{toxinidir}/test-requirements.txt
|
deps = -r{toxinidir}/test-requirements.txt
|
||||||
@ -15,7 +14,7 @@ whitelist_externals = bash
|
|||||||
find
|
find
|
||||||
rm
|
rm
|
||||||
env
|
env
|
||||||
# By default ostestr will set concurrency
|
# By default stestr will set concurrency
|
||||||
# to ncpu, to specify something else use
|
# to ncpu, to specify something else use
|
||||||
# the concurrency=<n> option.
|
# the concurrency=<n> option.
|
||||||
# call ie: 'tox -epy27 -- --concurrency=4'
|
# call ie: 'tox -epy27 -- --concurrency=4'
|
||||||
@ -27,12 +26,12 @@ passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY OS_DEB
|
|||||||
[testenv:py27]
|
[testenv:py27]
|
||||||
commands =
|
commands =
|
||||||
{[testenv]commands}
|
{[testenv]commands}
|
||||||
ostestr '{posargs}'
|
stestr run {posargs}
|
||||||
|
|
||||||
[testenv:py35]
|
[testenv:py35]
|
||||||
commands =
|
commands =
|
||||||
{[testenv]commands}
|
{[testenv]commands}
|
||||||
ostestr '{posargs}'
|
stestr run {posargs}
|
||||||
|
|
||||||
[testenv:genconfig]
|
[testenv:genconfig]
|
||||||
commands = oslo-config-generator --config-file=etc/masakari/masakari-config-generator.conf
|
commands = oslo-config-generator --config-file=etc/masakari/masakari-config-generator.conf
|
||||||
|
Loading…
x
Reference in New Issue
Block a user