diff options
author | 2016-10-30 04:42:05 -0400 | |
---|---|---|
committer | 2016-10-30 04:42:05 -0400 | |
commit | cf4661b1c89e4975e33bba6d09db7316d2ed745a (patch) | |
tree | f5f19df6b42ae26a7a13defa2a7627f91f2f84ca /tox.ini | |
parent | [glsa] Fix handling ranges in GLSAs (diff) | |
download | pkgcore-cf4661b1c89e4975e33bba6d09db7316d2ed745a.tar.gz pkgcore-cf4661b1c89e4975e33bba6d09db7316d2ed745a.tar.bz2 pkgcore-cf4661b1c89e4975e33bba6d09db7316d2ed745a.zip |
tox: remove old coverage dir if it exists
Otherwise rerunning tests can fail if the old dir exists.
Diffstat (limited to 'tox.ini')
-rw-r--r-- | tox.ini | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -5,6 +5,7 @@ skipsdist = True whitelist_externals = cp mv + rm changedir = {envsitepackagesdir} setenv = PYTHONPATH = {envsitepackagesdir} @@ -18,6 +19,7 @@ commands = pip install "{toxinidir}" cp "{toxinidir}/.coveragerc" "{envsitepackagesdir}" py.test {posargs:-n 4 --cov-report html --cov pkgcore pkgcore/test} + rm -rf "{envdir}"/htmlcov mv "{envsitepackagesdir}"/htmlcov "{envdir}" [testenv:doc] |