[tox]
minversion = 1.6
envlist = pep8,py26,py27
skipsdist = False

[testenv]
usedevelop = True
install_command = pip install -U {opts} {packages}
setenv =
   VIRTUAL_ENV={envdir}
deps = -r{toxinidir}/requirements.txt
       -r{toxinidir}/test-requirements.txt
commands = py.test

[testenv:pep8]
commands = flake8
basepython = python2

[testenv:venv]
commands = {posargs}
basepython = python2

[testenv:cover]
commands = py.test --cov octane
basepython = python2

[flake8]
# E123, E125 skipped as they are invalid PEP-8.
# H101 - Don't force author's name on TODOs
show-source = True
ignore = E123,E125,H101
builtins = _
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build,octane_*,octane/tests/generate_test_nets.py,deploy/*

[tox]
minversion = 1.6
envlist = pep8,py26,py27
skipsdist = False

[testenv]
usedevelop = True
install_command = pip install -U {opts} {packages}
setenv =
   VIRTUAL_ENV={envdir}
deps = -r{toxinidir}/requirements.txt
       -r{toxinidir}/test-requirements.txt
commands = py.test {posargs}

[testenv:pep8]
commands = flake8
basepython = python2

[testenv:venv]
commands = {posargs}
basepython = python2

[testenv:cover]
commands = py.test --cov octane
basepython = python2

[flake8]
# E123, E125 skipped as they are invalid PEP-8.
# H101 - Don't force author's name on TODOs
show-source = True
ignore = E123,E125,H101
builtins = _
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build,octane_*,octane/tests/generate_test_nets.py,deploy/*

Add {posargs} to the command of testenv
Add {posargs} to the command of testenv

This addition allows to run specified tests e.g.:

    $ tox -e py26,py27 -- octane/tests/test_util_node.py

Change-Id: I9b8ec97650c33084d198e652cc31d32cdbdedb8d
