Update to stestr

Change-Id: I2b6dac8e58795936d6880bfa21c5715f0184e284
This commit is contained in:
Alex Schultz 2019-08-16 15:56:21 -06:00
parent ccf6f4c416
commit f362e1bc71
2 changed files with 12 additions and 7 deletions

3
.stestr.conf Normal file
View File

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

16
tox.ini
View File

@ -4,14 +4,16 @@ envlist = py36,py27,pep8
skipsdist = True
[testenv]
deps = -r{toxinidir}/test-requirements.txt
usedevelop = True
install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages}
commands =
find . -type f -name "*.py[c|o]" -delete
ostestr --slowest --regex 'tripleo_common_tempest_plugin.*' {posargs}
whitelist_externals = find
install_command = pip install {opts} {packages}
deps =
-c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands = stestr run {posargs}
whitelist_externals =
bash
tox
[testenv:pep8]
basepython = python3