Improve `cover` tox env

Reuse `setenv` settings from parent `testenv` env

This is a followup to I3aefd97312bb9e5985e601dd192913247046d6e4

Change-Id: I4960a737a68ee146447cb6e4a5c6fe5b36a6dfc1
This commit is contained in:
Pavlo Shchelokovskyy 2017-09-25 13:19:59 +00:00
parent 52b1bc11d6
commit 0ed6fd2a30
1 changed files with 1 additions and 5 deletions

View File

@ -26,11 +26,7 @@ commands =
commands = {posargs}
[testenv:cover]
setenv = VIRTUAL_ENV={envdir}
PYTHONDONTWRITEBYTECODE = 1
LANGUAGE=en_US
LC_ALL=en_US.UTF-8
TESTS_DIR=./ironic_staging_drivers/tests/unit/
setenv = {[testenv]setenv}
PYTHON=coverage run --source ironic_staging_drivers --omit='*tests*' --parallel-mode
commands =
coverage erase