Switch to stestr

According to Openstack summit session [1],
stestr is maintained project to which all Openstack projects should migrate.

Let's switch to stestr as other projects have already moved to it.

[1] https://etherpad.openstack.org/p/YVR-python-pti

Change-Id: I61dca6dfd7f6227731fdd6902bdd79b5ba0fb995
This commit is contained in:
Vu Cong Tuan 2018-07-09 13:34:33 +07:00 committed by Dirk Mueller
parent 2f52be024b
commit fd4d10d732
7 changed files with 7 additions and 13 deletions

2
.gitignore vendored
View File

@ -13,7 +13,7 @@ dist
renderspec.egg-info
ChangeLog
run_tests.err.log
.testrepository
.stestr/
.tox
doc/source/api
doc/build

3
.stestr.conf Normal file
View File

@ -0,0 +1,3 @@
[DEFAULT]
test_path=./
top_dir=./

View File

@ -1,8 +0,0 @@
[DEFAULT]
test_command=OS_STDOUT_CAPTURE=${OS_STDOUT_CAPTURE:-1} \
OS_STDERR_CAPTURE=${OS_STDERR_CAPTURE:-1} \
OS_TEST_TIMEOUT=${OS_TEST_TIMEOUT:-60} \
OS_LOG_CAPTURE=${OS_LOG_CAPTURE:-1} \
${PYTHON:-python} -m subunit.run discover -t ./ ./ $LISTOPT $IDOPTION
test_id_option=--load-list $IDFILE
test_list_option=--list

View File

@ -4,4 +4,3 @@
- openstack-python35-jobs
- openstack-python36-jobs
- publish-openstack-docs-pti
- check-requirements

View File

@ -1,8 +1,8 @@
# The order of packages is significant, because pip processes them in the order
# of appearance. Changing the order has an impact on the overall integration
# process, which may cause wedges in the gate later.
Jinja2!=2.9.0,!=2.9.1,!=2.9.2,!=2.9.3,!=2.9.4,>=2.8 # BSD License (3 clause)
pymod2pkg!=0.8.0,>=0.7.0 # Apache-2.0
Jinja2>=2.10 # BSD License (3 clause)
PyYAML>=3.10 # MIT
packaging>=16.5 # Apache-2.0
six>=1.10.0 # MIT

View File

@ -2,7 +2,7 @@
# of appearance. Changing the order has an impact on the overall integration
# process, which may cause wedges in the gate later.
flake8>=3.5.0 # MIT
testrepository>=0.0.18 # Apache-2.0/BSD
stestr>=2.0.0 # Apache-2.0
testresources>=2.0.0 # Apache-2.0/BSD
testtools>=2.2.0 # MIT
ddt>=1.0.1 # MIT

View File

@ -14,7 +14,7 @@ deps =
-c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt}
-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands = python setup.py testr --testr-args='{posargs}'
commands = stestr run {posargs}
[testenv:pep8]
commands =