diff --git a/.gitignore b/.gitignore index 1af3679..e4f3bd3 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,4 @@ etc/ kolla_cli.egg-info/* .testrepository .mypy_cache/* +.stestr diff --git a/kolla_cli/tests/functional/README.txt b/kolla_cli/tests/functional/README.txt index fd0081d..f8a23d9 100644 --- a/kolla_cli/tests/functional/README.txt +++ b/kolla_cli/tests/functional/README.txt @@ -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 diff --git a/test-requirements.txt b/test-requirements.txt index bf21a0c..49f496b 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -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 diff --git a/tox.ini b/tox.ini index 87f7547..d2757bd 100644 --- a/tox.ini +++ b/tox.ini @@ -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