aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Harder <radhermit@gmail.com>2016-10-30 04:42:05 -0400
committerTim Harder <radhermit@gmail.com>2016-10-30 04:42:05 -0400
commitcf4661b1c89e4975e33bba6d09db7316d2ed745a (patch)
treef5f19df6b42ae26a7a13defa2a7627f91f2f84ca
parent[glsa] Fix handling ranges in GLSAs (diff)
downloadpkgcore-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.
-rw-r--r--tox.ini2
1 files changed, 2 insertions, 0 deletions
diff --git a/tox.ini b/tox.ini
index d83ce5c1..be61f912 100644
--- a/tox.ini
+++ b/tox.ini
@@ -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]