VPNaaS: Restore coverage operation
Sometime in the past few months, the --coverage-package-name option for coverage tests was no longer supported by testr (not sure when this happened). Without this argument, the coverage run will not use the files in the workspace, but instead will use packaged upstream files. Infra folks kindly mentioned that we can use test, instead of testr and the argument works now. This commit applies that change to each of the three coverage test runs. Change-Id: I74e741294617f4ad8a33c8a65850266181269eb0 Closes-Bug: 1454772
This commit is contained in:
parent
582e682453
commit
15988dff42
6
tox.ini
6
tox.ini
@ -70,17 +70,17 @@ commands = python ./tools/check_i18n.py ./neutron-vpnaas ./tools/i18n_cfg.py
|
||||
|
||||
[testenv:cover]
|
||||
commands =
|
||||
python setup.py testr --coverage --coverage-package-name=neutron_vpnaas --testr-args='{posargs}'
|
||||
python setup.py test --coverage --coverage-package-name=neutron_vpnaas --testr-args='{posargs}'
|
||||
|
||||
[testenv:dsvm-functional-cover]
|
||||
setenv = {[testenv:dsvm-functional]setenv}
|
||||
commands =
|
||||
python setup.py testr --coverage --coverage-package-name=neutron_vpnaas --testr-args='{posargs}'
|
||||
python setup.py test --coverage --coverage-package-name=neutron_vpnaas --testr-args='{posargs}'
|
||||
|
||||
[testenv:dsvm-functional-sswan-cover]
|
||||
setenv = {[testenv:dsvm-functional-sswan]setenv}
|
||||
commands =
|
||||
python setup.py testr --coverage --coverage-package-name=neutron_vpnaas --testr-args='{posargs}'
|
||||
python setup.py test --coverage --coverage-package-name=neutron_vpnaas --testr-args='{posargs}'
|
||||
|
||||
[testenv:venv]
|
||||
commands = {posargs}
|
||||
|
Loading…
Reference in New Issue
Block a user