[tox] Ensure pytest gets run with virtualenv's python
authorDenis Laxalde <denis.laxalde@logilab.fr>
Fri, 11 Dec 2015 14:07:51 +0100
changeset 10976 b150016e476c
parent 10975 6615ecb60244
child 10981 45bc791275b4
[tox] Ensure pytest gets run with virtualenv's python
tox.ini
--- a/tox.ini	Mon Nov 09 11:34:28 2015 +0100
+++ b/tox.ini	Fri Dec 11 14:07:51 2015 +0100
@@ -14,12 +14,13 @@
   sobjects: -r{toxinidir}/sobjects/test/requirements.txt
   web: -r{toxinidir}/web/test/requirements.txt
   wsgi: -r{toxinidir}/wsgi/test/requirements.txt
-commands = pytest -t {envname}/test {posargs}
+commands =
+  {envpython} -c 'from logilab.common import pytest; pytest.run()' -t {toxinidir}/{envname}/test {posargs}
 
 [testenv:cubicweb]
 commands =
   {envpython} -m pip install --upgrade --no-deps --quiet git+git://github.com/logilab/yapps@master#egg=yapps
-  pytest -t test {posargs}
+  {envpython} -c 'from logilab.common import pytest; pytest.run()' -t {toxinidir}/test {posargs}
 
 [testenv:doc]
 changedir = doc