Fix neutron-fwaas cover tests

The tox.ini command for 'tox -e cover' breaks with error:
error: option --coverage-package-name not recognized

Appears to be same issue as found in neutron-vpnaas and fixed
there under https://review.openstack.org/#/c/217847/

Applying same fix to neutron-fwaas.

Same logic applies to 'tox -e cover-constraints', though
because upstream changed 'upper-constraints.txt' eventlet
to 0.18.3 in middle had to set to local stack value to run:
export UPPER_CONSTRAINTS_FILE=/opt/stack/requirements/
upper-constraints.txt

Closes-Bug: #1546793
Change-Id: I82fde90d1ed17f2495f8560b8e56febc10e3013c
This commit is contained in:
James Arendt 2016-02-12 00:22:30 -08:00
parent f001799673
commit 18ea965fa2
1 changed files with 2 additions and 2 deletions

View File

@ -57,12 +57,12 @@ commands = python ./tools/check_i18n.py ./neutron_fwaas ./tools/i18n_cfg.py
[testenv:cover]
commands =
python setup.py testr --coverage --coverage-package-name=neutron_fwaas --testr-args='{posargs}'
python setup.py test --coverage --coverage-package-name=neutron_fwaas --testr-args='{posargs}'
[testenv:cover-constraints]
commands =
install_command = {[testenv:common-constraints]install_command}
python setup.py testr --coverage --coverage-package-name=neutron_fwaas --testr-args='{posargs}'
python setup.py test --coverage --coverage-package-name=neutron_fwaas --testr-args='{posargs}'
[testenv:venv]
commands = {posargs}