Merge "tox: Use common 'command' definition for unit tests"

This commit is contained in:
Zuul
2019-10-09 17:15:01 +00:00
committed by Gerrit Code Review
+4 -13
View File
@@ -31,22 +31,15 @@ passenv =
OS_DEBUG GENERATE_HASHES
# there is also secret magic in subunit-trace which lets you run in a fail only
# mode. To do this define the TRACE_FAILONLY environmental variable.
commands =
stestr run {posargs}
env TEST_OSPROFILER=1 stestr run --combine --no-discover 'nova.tests.unit.test_profiler'
[testenv:py27]
commands =
stestr run {posargs}
env TEST_OSPROFILER=1 stestr run --combine --no-discover 'nova.tests.unit.test_profiler'
{[testenv]commands}
stestr slowest
[testenv:py36]
commands =
stestr run {posargs}
env TEST_OSPROFILER=1 stestr run --combine --no-discover 'nova.tests.unit.test_profiler'
[testenv:py37]
commands =
{[testenv:py36]commands}
[testenv:pep8]
description =
Run style checks.
@@ -285,5 +278,3 @@ deps =
-c{toxinidir}/lower-constraints.txt
-r{toxinidir}/test-requirements.txt
-r{toxinidir}/requirements.txt
commands =
stestr run {posargs}