Remove .testrepository/times.dbm before test runs
"tox -e cover" may fail if run after "tox -e py27". This commit tells tox to remove times.dbm between test runs. Closes-bug: #1690751 Change-Id: Iea10b2bb5a72e8cf36afa5216b17aca3bc155ddc
This commit is contained in:
parent
c8ccd2ce9a
commit
c137e2eead
3
tox.ini
3
tox.ini
|
@ -11,7 +11,9 @@ deps = -r{toxinidir}/requirements.txt
|
||||||
-r{toxinidir}/test-requirements.txt
|
-r{toxinidir}/test-requirements.txt
|
||||||
whitelist_externals = sh
|
whitelist_externals = sh
|
||||||
find
|
find
|
||||||
|
rm
|
||||||
commands = find {toxinidir} -type f -name "*.py[c|o]" -delete
|
commands = find {toxinidir} -type f -name "*.py[c|o]" -delete
|
||||||
|
rm -f .testrepository/times.dbm
|
||||||
ostestr '{posargs}'
|
ostestr '{posargs}'
|
||||||
|
|
||||||
[testenv:fullstack]
|
[testenv:fullstack]
|
||||||
|
@ -38,6 +40,7 @@ commands = {posargs}
|
||||||
|
|
||||||
[testenv:cover]
|
[testenv:cover]
|
||||||
commands =
|
commands =
|
||||||
|
rm -f .testrepository/times.dbm
|
||||||
python setup.py test --coverage --testr-args='{posargs}' \
|
python setup.py test --coverage --testr-args='{posargs}' \
|
||||||
--coverage-package-name=kuryr_kubernetes
|
--coverage-package-name=kuryr_kubernetes
|
||||||
coverage report
|
coverage report
|
||||||
|
|
Loading…
Reference in New Issue