summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRodolfo Carvalho <rhcarvalho@gmail.com>2017-02-19 22:43:56 +0100
committerRodolfo Carvalho <rhcarvalho@gmail.com>2017-02-20 18:12:04 +0100
commit7ca7fbdae8ab8fd279a4af9b5d6f140b1aff72e9 (patch)
treeaaeb7be69bbd52fd57cdb9cd06fcbbb208233fe3
parent1ac142fa1e785aade8272759d32561fc716e8740 (diff)
downloadopenshift-7ca7fbdae8ab8fd279a4af9b5d6f140b1aff72e9.tar.gz
openshift-7ca7fbdae8ab8fd279a4af9b5d6f140b1aff72e9.tar.bz2
openshift-7ca7fbdae8ab8fd279a4af9b5d6f140b1aff72e9.tar.xz
openshift-7ca7fbdae8ab8fd279a4af9b5d6f140b1aff72e9.zip
Accept extra positional arguments in tox
Example: tox -e py35-ansible22-unit -- --collect-only
-rw-r--r--tox.ini4
-rw-r--r--utils/tox.ini2
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