]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
usedevelop in tox
authorMonty Taylor <mordred@inaugust.com>
Mon, 30 Sep 2013 22:57:43 +0000 (18:57 -0400)
committerMonty Taylor <mordred@inaugust.com>
Mon, 30 Sep 2013 22:57:43 +0000 (18:57 -0400)
We want to run code inside of the venv, not outside.

Change-Id: I92c5e35674933ac4d9d15eda32f3b9339dbedbd3

tox.ini

diff --git a/tox.ini b/tox.ini
index 0ed6211bb03348c5c23b5ba80f6ae7d156617f5c..11df1a3c82329802fec56af4d925a83e2507639d 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -1,12 +1,15 @@
 [tox]
+minversion = 1.6
+skipsdist = True
 envlist = py26,py27,py33,pep8
 
 [testenv]
-sitepackages = False
 setenv = VIRTUAL_ENV={envdir}
          LANG=en_US.UTF-8
          LANGUAGE=en_US:en
          LC_ALL=C
+usedevelop = True
+install_command = pip install {opts} {packages}
 
 deps = -r{toxinidir}/requirements.txt
        -r{toxinidir}/test-requirements.txt
@@ -16,11 +19,9 @@ commands =
   {toxinidir}/tools/conf/check_uptodate.sh
 
 [tox:jenkins]
-sitepackages = True
 downloadcache = ~/cache/pip
 
 [testenv:pep8]
-sitepackages = False
 commands =
   flake8 {posargs} . cinder/common
   flake8 --filename=cinder* bin