Merge "Fix test runner config issues with os-testr 1.0.0"

This commit is contained in:
Jenkins 2017-09-14 00:52:57 +00:00 committed by Gerrit Code Review
commit 4270fe81a1
3 changed files with 13 additions and 5 deletions

1
.gitignore vendored

@ -13,6 +13,7 @@
.project
.pydevproject
.ropeproject
.stestr/
.testrepository/
.tox
.idea

4
.stestr.conf Normal file

@ -0,0 +1,4 @@
[DEFAULT]
test_path=${OS_TEST_PATH:-./nova/tests}
top_dir=./
group_regex=nova\.tests\.functional\.api\.openstack\.placement\.test_placement_api(?:\.|_)([^_]+)

13
tox.ini

@ -15,6 +15,9 @@ setenv = VIRTUAL_ENV={envdir}
OS_TEST_PATH=./nova/tests/unit
LANGUAGE=en_US
LC_ALL=en_US.utf-8
OS_STDOUT_CAPTURE=1
OS_STDERR_CAPTURE=1
OS_TEST_TIMEOUT=160
deps = -r{toxinidir}/test-requirements.txt
commands =
find . -type f -name "*.pyc" -delete
@ -26,13 +29,13 @@ passenv = OS_DEBUG GENERATE_HASHES
[testenv:py27]
commands =
{[testenv]commands}
env TEST_OSPROFILER=1 ostestr --regex 'nova.tests.unit.test_profiler'
ostestr '{posargs}'
env TEST_OSPROFILER=1 stestr run 'nova.tests.unit.test_profiler'
stestr run {posargs}
[testenv:py35]
commands =
{[testenv]commands}
env TEST_OSPROFILER=1 ostestr --regex 'nova.tests.unit.test_profiler'
env TEST_OSPROFILER=1 stestr run 'nova.tests.unit.test_profiler'
bash tools/pretty_tox3.sh '{posargs}'
[testenv:pep8]
@ -64,7 +67,7 @@ setenv = VIRTUAL_ENV={envdir}
LANGUAGE=en_US
commands =
find . -type f -name "*.pyc" -delete
ostestr '{posargs}'
stestr run {posargs}
# TODO(gcb) Merge this into [testenv:functional] when functional tests are gating
# with python 3.5
@ -87,7 +90,7 @@ setenv = VIRTUAL_ENV={envdir}
LANGUAGE=en_US
commands =
find . -type f -name "*.pyc" -delete
ostestr '{posargs}'
stestr run {posargs}
[testenv:genconfig]
commands = oslo-config-generator --config-file=etc/nova/nova-config-generator.conf