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: I4c20eb58982c66598f0283864b9863b84cc29e57
Signed-off-by: Charles Short <zulcss@gmail.com>
This commit is contained in:
Charles Short 2018-06-05 14:30:33 -04:00
parent 4ceed99c43
commit 5e3a06d887
4 changed files with 5 additions and 4 deletions

1
.gitignore vendored
View File

@ -6,3 +6,4 @@ etc/
kolla_cli.egg-info/*
.testrepository
.mypy_cache/*
.stestr

View File

@ -16,4 +16,4 @@ export KOLLA_TOOLS_DIR=./tools/
Then you can run a single test, for eg:
source .tox/functional/bin/activate
ostestr -n kolla_cli.tests.functional.test_deploy.TestFunctional.test_deploy
stestr run -n kolla_cli.tests.functional.test_deploy.TestFunctional.test_deploy

View File

@ -11,7 +11,7 @@ fixtures>=0.3.14
mock>=1.0
mypy>=0.6; python_version>'2.7'
oslo.utils>=3.33.0 # Apache-2.0
os-testr>=1.0.0 # Apache-2.0
stestr>=1.0.0 # Apache-2.0
pexpect>=4.0.1
sphinx>=1.1.2,!=1.2.0,!=1.3b1,<1.3
sphinxcontrib-pecanwsme>=0.8

View File

@ -18,7 +18,7 @@ commands =
find . -type d -name "__pycache__" -delete
[testenv:py27]
commands = ostestr {posargs}
commands = stestr run {posargs}
[testenv:functional]
whitelist_externals =
@ -33,7 +33,7 @@ commands =
{[testenv]commands}
{toxinidir}/kolla_cli/tests/functional/functional_test_setup.sh
bash -c "pushd /tmp/kollaclitest/usr/share/kolla-ansible/git; python setup.py install; popd"
ostestr {posargs} --serial
stestr run {posargs} --serial
[testenv:functional-py35]
basepython = py35: python3.5