]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
tox: Avoid system site-packages 1502/head
authorZack Cerza <zack@redhat.com>
Thu, 14 May 2020 21:27:43 +0000 (15:27 -0600)
committerZack Cerza <zack@redhat.com>
Mon, 1 Jun 2020 21:26:00 +0000 (15:26 -0600)
Signed-off-by: Zack Cerza <zack@redhat.com>
tox.ini

diff --git a/tox.ini b/tox.ini
index 6fbb040b9f35d3b104de5def52e6342465e38ed7..e4c7c14133f7a7380bb44653be29f7bf098a3627 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -4,7 +4,6 @@ envlist = docs, py3, py27, py27-integration, flake8, flake8-py3, openstack
 [testenv:py27]
 install_command = pip install --upgrade {opts} {packages}
 passenv = HOME
-sitepackages=True
 deps=
   -r{toxinidir}/requirements2.txt
   mock==2.0.0
@@ -13,14 +12,13 @@ deps=
   coverage==4.5.4
 
 commands=
-    py.test --cov=teuthology --cov-report=term -v {posargs:teuthology scripts}
+    python -m pytest --cov=teuthology --cov-report=term -v {posargs:teuthology scripts}
 
 
 [testenv:py3]
 basepython=python3
 install_command = pip install --upgrade {opts} {packages}
 passenv = HOME
-sitepackages=True
 deps=
   -r{toxinidir}/requirements3.txt
   mock==2.0.0
@@ -29,7 +27,7 @@ deps=
   coverage==4.5.4
 
 commands=
-    py.test --cov=teuthology --cov-report=term -v {posargs:teuthology scripts}
+    python -m pytest --cov=teuthology --cov-report=term -v {posargs:teuthology scripts}
 
 
 [testenv:py27-integration]