Allow passing arguments to tox

Pass extra arguments to tests.

This allows to run for example:
       tox -- --force

Also reorder elements of envlist.

Change-Id: I6377da8dec6b6b15a6ea3899e2651cfd40b221f0
This commit is contained in:
Andreas Jaeger 2014-01-03 10:42:16 +01:00
parent af9e1b44e4
commit db7c4fa3fd

12
tox.ini
View File

@ -1,7 +1,7 @@
[tox]
minversion = 1.6
envlist = checkbuild,checkdeletions,checkniceness,checksyntax
skipsdist=True
envlist = checkniceness,checksyntax,checkdeletions,checkbuild
skipsdist = True
[testenv]
setenv =
@ -15,13 +15,13 @@ deps = -r{toxinidir}/test-requirements.txt
commands = {posargs}
[testenv:checkniceness]
commands = openstack-doc-test --check-niceness
commands = openstack-doc-test --check-niceness {posargs}
[testenv:checksyntax]
commands = openstack-doc-test --check-syntax
commands = openstack-doc-test --check-syntax {posargs}
[testenv:checkdeletions]
commands = openstack-doc-test --check-deletions
commands = openstack-doc-test --check-deletions {posargs}
[testenv:checkbuild]
commands = openstack-doc-test --check-build
commands = openstack-doc-test --check-build {posargs}