Merge "Switch to stestr and remove flake8 from the list of dependencies"

This commit is contained in:
Zuul 2018-08-30 19:34:06 +00:00 committed by Gerrit Code Review
commit 92b676f05a
5 changed files with 8 additions and 12 deletions

2
.gitignore vendored
View File

@ -3,7 +3,7 @@ subunit.log
.venv
*,cover
cover
.testrepository
.stestr
*.pyc
.idea
*.sw?

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

@ -1,8 +1,7 @@
# 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.
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

View File

@ -14,10 +14,12 @@ 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]
basepython = python3
deps = {[testenv]deps}
flake8<2.7.0,>=2.6.0
commands = flake8
[testenv:venv]