diff options
author | Stephen Finucane <sfinucan@redhat.com> | 2019-09-25 15:47:59 +0100 |
---|---|---|
committer | Stephen Finucane <sfinucan@redhat.com> | 2019-09-27 10:48:57 +0100 |
commit | 2a74120b73fd889930421a0a67855c73750a6752 (patch) | |
tree | bce16228f164c4cfc8ec5761f7d7a1ac9296ada0 /tox.ini | |
parent | 09077c20fd134c71e4ca9a4656013e8b92b30c2e (diff) | |
download | nova-2a74120b73fd889930421a0a67855c73750a6752.tar.gz |
tox: Use common 'command' definition for unit tests
Less LoC. Winning.
Change-Id: Icc1531d18ea1e0692c41320a98100bba92d7b48a
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
Diffstat (limited to 'tox.ini')
-rw-r--r-- | tox.ini | 15 |
1 files changed, 3 insertions, 12 deletions
@@ -31,21 +31,14 @@ 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. - -[testenv:py27] commands = stestr run {posargs} env TEST_OSPROFILER=1 stestr run --combine --no-discover 'nova.tests.unit.test_profiler' - stestr slowest -[testenv:py36] -commands = - stestr run {posargs} - env TEST_OSPROFILER=1 stestr run --combine --no-discover 'nova.tests.unit.test_profiler' - -[testenv:py37] +[testenv:py27] commands = - {[testenv:py36]commands} + {[testenv]commands} + stestr slowest [testenv:pep8] description = @@ -285,5 +278,3 @@ deps = -c{toxinidir}/lower-constraints.txt -r{toxinidir}/test-requirements.txt -r{toxinidir}/requirements.txt -commands = - stestr run {posargs} |