From 7ca7fbdae8ab8fd279a4af9b5d6f140b1aff72e9 Mon Sep 17 00:00:00 2001 From: Rodolfo Carvalho Date: Sun, 19 Feb 2017 22:43:56 +0100 Subject: Accept extra positional arguments in tox Example: tox -e py35-ansible22-unit -- --collect-only --- tox.ini | 4 ++-- utils/tox.ini | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tox.ini b/tox.ini index 08c3d84d0..13c87f5c4 100644 --- a/tox.ini +++ b/tox.ini @@ -12,8 +12,8 @@ deps = ansible22: ansible~=2.2 commands = - unit: pytest - flake8: flake8 + unit: pytest {posargs} + flake8: flake8 {posargs} pylint: python setup.py lint yamllint: python setup.py yamllint generate_validation: python setup.py generate_validation diff --git a/utils/tox.ini b/utils/tox.ini index 2a29d1525..2524923cb 100644 --- a/utils/tox.ini +++ b/utils/tox.ini @@ -14,6 +14,6 @@ commands = # Needed to make detox work, since it ignores usedevelop # https://github.com/tox-dev/tox/issues/180 unit: pip install -e . - unit: pytest + unit: pytest {posargs} flake8: python setup.py flake8 pylint: python setup.py lint -- cgit v1.2.1