diff options
author | Anthony Dodd <adodd@vbridges.com> | 2013-06-27 11:24:45 -0500 |
---|---|---|
committer | Anthony Dodd <adodd@vbridges.com> | 2013-06-27 11:24:45 -0500 |
commit | a8f2512f2511a3bce314e90bfb46d7083cb998da (patch) | |
tree | 7914fe328d69864f52847b67ba8d5067c696915e /tox.ini | |
parent | 232630a20db04488e09ca28d507222c9123b6856 (diff) | |
download | keystone-a8f2512f2511a3bce314e90bfb46d7083cb998da.tar.gz keystone-a8f2512f2511a3bce314e90bfb46d7083cb998da.tar.xz keystone-a8f2512f2511a3bce314e90bfb46d7083cb998da.zip |
`tox -ecover` failure. Missing entry in tox.ini
`tox -ecover` is failing due to a missing entry in keystone's tox.ini file.
In tox.ini the following code appears:
'''
[testenv:cover]
setenv = NOSE_WITH_COVERAGE=1
NOSE_COVER_HTML=1
NOSE_COVER_HTML_DIR={toxinidir}/cover
'''
Adding 'VIRTUAL_ENV={envdir}' to the setenv mapping, as shown below,
has resolved the issue on my machine.
'''
[testenv:cover]
setenv = VIRTUAL_ENV={envdir}
NOSE_WITH_COVERAGE=1
NOSE_COVER_HTML=1
NOSE_COVER_HTML_DIR={toxinidir}/cover
'''
Change-Id: I3550ac61cdc6389dd239c5ad319d881519b3543d
Fixes: bug #1195371
Diffstat (limited to 'tox.ini')
-rw-r--r-- | tox.ini | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -23,7 +23,8 @@ commands = downloadcache = ~/cache/pip [testenv:cover] -setenv = NOSE_WITH_COVERAGE=1 +setenv = VIRTUAL_ENV={envdir} + NOSE_WITH_COVERAGE=1 NOSE_COVER_HTML=1 NOSE_COVER_HTML_DIR={toxinidir}/cover |