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: Idf2f91565f9205c745a7110be5bf81267bd3caf5
Signed-off-by: Chuck Short <chucks@redhat.com>
This commit is contained in:
Chuck Short 2018-06-29 15:04:10 -04:00
parent a48a49bce6
commit 055f31365e
5 changed files with 7 additions and 3 deletions

1
.gitignore vendored
View File

@ -53,6 +53,7 @@ ChangeLog
!/.mailmap
!/.pylintrc
!/.testr.conf
!/.stestr.conf
contrib/vagrant/.vagrant

3
.stestr.conf Normal file
View File

@ -0,0 +1,3 @@
[DEFAULT]
test_path=${OS_TEST_PATH:-./kuryr_kubernetes/tests/}
top_dir=./

View File

@ -119,7 +119,7 @@ SQLAlchemy==1.2.5
sqlalchemy-migrate==0.11.0
sqlparse==0.2.4
statsd==3.2.2
stestr==2.0.0
stestr==1.0.0
stevedore==1.20.0
Tempita==0.5.2
tenacity==4.9.0

View File

@ -9,7 +9,7 @@ ddt>=1.0.1 # MIT
docutils>=0.11 # OSI-Approved Open Source, Public Domain
mock>=2.0.0 # BSD
python-subunit>=1.0.0 # Apache-2.0/BSD
os-testr>=1.0.0 # Apache-2.0
stestr>=1.0.0 # Apache-2.0
oslotest>=3.2.0 # Apache-2.0
testrepository>=0.0.18 # Apache-2.0/BSD
testscenarios>=0.4 # Apache-2.0/BSD

View File

@ -14,7 +14,7 @@ whitelist_externals = sh
rm
commands = find {toxinidir} -type f -name "*.py[c|o]" -delete
rm -f .testrepository/times.dbm
ostestr '{posargs}'
stestr run '{posargs}'
[testenv:fullstack]
basepython = python2.7