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: I8595db1fb9ce685c85f76b94714b270ea34c9d7d
This commit is contained in:
Andreas Jaeger 2014-01-03 10:43:48 +01:00
parent e833bb83cd
commit 69a434ad38
1 changed files with 6 additions and 6 deletions

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}