Use tox env variables in coverage tests

We should try to run coverage tests in the same conditions as
unit tests using the same tox environment.

Change-Id: I07341a5e16264964f4d165b9b5ef80dc35293a17
This commit is contained in:
Riccardo Pittau 2023-06-07 17:31:26 +02:00
parent a600895ba3
commit 048bff1daf
1 changed files with 1 additions and 2 deletions

View File

@ -62,8 +62,7 @@ commands =
{toxinidir}/tools/check-releasenotes.py
[testenv:cover]
setenv = VIRTUAL_ENV={envdir}
LANGUAGE=en_US
setenv = {[testenv]setenv}
PYTHON=coverage run --source ironic --omit='*tests*' --parallel-mode
commands =
coverage erase