Skip to content

Commit

Permalink
tox -ecover failure. Missing entry in tox.ini
Browse files Browse the repository at this point in the history
`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
  • Loading branch information
Anthony Dodd committed Jun 27, 2013
1 parent 232630a commit a8f2512
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tox.ini
Expand Up @@ -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

Expand Down

0 comments on commit a8f2512

Please sign in to comment.