summaryrefslogtreecommitdiffstats
path: root/tox.ini
diff options
context:
space:
mode:
authorMark McLoughlin <markmc@redhat.com>2013-05-20 13:46:49 +0100
committerMark McLoughlin <markmc@redhat.com>2013-05-20 13:47:52 +0100
commit7bcee355909cea01429084889bdf03e3fdc76c74 (patch)
tree959ca1b0b189569de7e698dabe7f3972da0e7807 /tox.ini
parent2d579dd3f311d3c5cb9aa1658d81488bb526b09c (diff)
downloadoslo-7bcee355909cea01429084889bdf03e3fdc76c74.tar.gz
oslo-7bcee355909cea01429084889bdf03e3fdc76c74.tar.xz
oslo-7bcee355909cea01429084889bdf03e3fdc76c74.zip
Fix tox coverange env
We're not setting the VIRTUAL_ENV environment variable, so 'tox -ecover' is failing because patch_tox_venv uses the variable. Change-Id: I3898d0dd1f8a9bf4216253bb2c7d8491e1e8ce56
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini3
1 files changed, 2 insertions, 1 deletions
diff --git a/tox.ini b/tox.ini
index c23df7f..cf32dad 100644
--- a/tox.ini
+++ b/tox.ini
@@ -29,7 +29,8 @@ commands = python ./tools/lint.py ./openstack
python ./tools/lint.py ./tests
[testenv:cover]
-setenv = NOSE_WITH_COVERAGE=1
+setenv = VIRTUAL_ENV={envdir}
+ NOSE_WITH_COVERAGE=1
[testenv:venv]
commands = {posargs}