Merge "Only use stestr and tempest run in tempest tox jobs"

This commit is contained in:
Zuul
2017-12-04 03:07:04 +00:00
committed by Gerrit Code Review

23
tox.ini
View File

@@ -36,7 +36,17 @@ commands =
commands = oslo-config-generator --config-file tempest/cmd/config-generator.tempest.conf
[testenv:cover]
commands = python setup.py testr --coverage --testr-arg='tempest\.tests {posargs}'
setenv =
{[testenv]setenv}
PYTHON=coverage run --source tempest --parallel-mode
commands =
coverage erase
find . -type f -name "*.pyc" -delete
stestr --test-path ./tempest/tests run {posargs}
coverage combine
coverage html -d cover
coverage xml -o cover/coverage.xml
coverage report
[testenv:all]
envdir = .tox/tempest
@@ -50,17 +60,6 @@ commands =
find . -type f -name "*.pyc" -delete
tempest run --regex {posargs}
[testenv:ostestr]
sitepackages = {[tempestenv]sitepackages}
# 'all' includes slow tests
setenv =
{[tempestenv]setenv}
OS_TEST_TIMEOUT={env:OS_TEST_TIMEOUT:1200}
deps = {[tempestenv]deps}
commands =
find . -type f -name "*.pyc" -delete
ostestr {posargs}
[testenv:all-plugin]
sitepackages = True
# 'all' includes slow tests