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:
parent
4ceed99c43
commit
5e3a06d887
|
@ -6,3 +6,4 @@ etc/
|
||||||
kolla_cli.egg-info/*
|
kolla_cli.egg-info/*
|
||||||
.testrepository
|
.testrepository
|
||||||
.mypy_cache/*
|
.mypy_cache/*
|
||||||
|
.stestr
|
||||||
|
|
|
@ -16,4 +16,4 @@ export KOLLA_TOOLS_DIR=./tools/
|
||||||
Then you can run a single test, for eg:
|
Then you can run a single test, for eg:
|
||||||
|
|
||||||
source .tox/functional/bin/activate
|
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
|
||||||
|
|
|
@ -11,7 +11,7 @@ fixtures>=0.3.14
|
||||||
mock>=1.0
|
mock>=1.0
|
||||||
mypy>=0.6; python_version>'2.7'
|
mypy>=0.6; python_version>'2.7'
|
||||||
oslo.utils>=3.33.0 # Apache-2.0
|
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
|
pexpect>=4.0.1
|
||||||
sphinx>=1.1.2,!=1.2.0,!=1.3b1,<1.3
|
sphinx>=1.1.2,!=1.2.0,!=1.3b1,<1.3
|
||||||
sphinxcontrib-pecanwsme>=0.8
|
sphinxcontrib-pecanwsme>=0.8
|
||||||
|
|
4
tox.ini
4
tox.ini
|
@ -18,7 +18,7 @@ commands =
|
||||||
find . -type d -name "__pycache__" -delete
|
find . -type d -name "__pycache__" -delete
|
||||||
|
|
||||||
[testenv:py27]
|
[testenv:py27]
|
||||||
commands = ostestr {posargs}
|
commands = stestr run {posargs}
|
||||||
|
|
||||||
[testenv:functional]
|
[testenv:functional]
|
||||||
whitelist_externals =
|
whitelist_externals =
|
||||||
|
@ -33,7 +33,7 @@ commands =
|
||||||
{[testenv]commands}
|
{[testenv]commands}
|
||||||
{toxinidir}/kolla_cli/tests/functional/functional_test_setup.sh
|
{toxinidir}/kolla_cli/tests/functional/functional_test_setup.sh
|
||||||
bash -c "pushd /tmp/kollaclitest/usr/share/kolla-ansible/git; python setup.py install; popd"
|
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]
|
[testenv:functional-py35]
|
||||||
basepython = py35: python3.5
|
basepython = py35: python3.5
|
||||||
|
|
Loading…
Reference in New Issue