瀏覽代碼

Accept extra positional arguments in tox

Example:

    tox -e py35-ansible22-unit -- --collect-only
Rodolfo Carvalho 8 年之前
父節點
當前提交
7ca7fbdae8
共有 2 個文件被更改,包括 3 次插入3 次删除
  1. 2 2
      tox.ini
  2. 1 1
      utils/tox.ini

+ 2 - 2
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

+ 1 - 1
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