Fix tox.ini for tox4
Execute shell scripts with bash. Make sure passenv is line-separated. Change-Id: I5bb5f8d0f534022917e3f62e45413c4ac7a4708a
This commit is contained in:
parent
2b518af0ab
commit
405414772e
42
tox.ini
42
tox.ini
@ -12,16 +12,24 @@ setenv = VIRTUAL_ENV={envdir}
|
|||||||
OS_STDERR_CAPTURE={env:OS_STDERR_CAPTURE:true}
|
OS_STDERR_CAPTURE={env:OS_STDERR_CAPTURE:true}
|
||||||
OS_TEST_TIMEOUT={env:OS_TEST_TIMEOUT:180}
|
OS_TEST_TIMEOUT={env:OS_TEST_TIMEOUT:180}
|
||||||
PYTHONWARNINGS=default::DeprecationWarning,ignore::DeprecationWarning:distutils,ignore::DeprecationWarning:site
|
PYTHONWARNINGS=default::DeprecationWarning,ignore::DeprecationWarning:distutils,ignore::DeprecationWarning:site
|
||||||
passenv = TRACE_FAILONLY GENERATE_HASHES http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY TOX_ENV_SRC_MODULES
|
passenv = TRACE_FAILONLY
|
||||||
|
GENERATE_HASHES
|
||||||
|
http_proxy
|
||||||
|
HTTP_PROXY
|
||||||
|
https_proxy
|
||||||
|
HTTPS_PROXY
|
||||||
|
no_proxy
|
||||||
|
NO_PROXY
|
||||||
|
TOX_ENV_SRC_MODULES
|
||||||
usedevelop = True
|
usedevelop = True
|
||||||
deps =
|
deps =
|
||||||
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
|
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
|
||||||
-r{toxinidir}/requirements.txt
|
-r{toxinidir}/requirements.txt
|
||||||
-r{toxinidir}/test-requirements.txt
|
-r{toxinidir}/test-requirements.txt
|
||||||
hacking>=3.0.1,<3.1.0 # Apache-2.0
|
hacking>=3.0.1,<3.1.0 # Apache-2.0
|
||||||
allowlist_externals = sh
|
allowlist_externals = bash
|
||||||
commands =
|
commands =
|
||||||
{toxinidir}/tools/pip_install_src_modules.sh "{toxinidir}"
|
bash {toxinidir}/tools/pip_install_src_modules.sh "{toxinidir}"
|
||||||
stestr run {posargs}
|
stestr run {posargs}
|
||||||
|
|
||||||
# there is also secret magic in ostestr which lets you run in a fail only
|
# there is also secret magic in ostestr which lets you run in a fail only
|
||||||
@ -63,14 +71,14 @@ setenv = {[testenv:functional]setenv}
|
|||||||
deps =
|
deps =
|
||||||
{[testenv:functional]deps}
|
{[testenv:functional]deps}
|
||||||
commands =
|
commands =
|
||||||
{toxinidir}/tools/deploy_rootwrap.sh {toxinidir} {envdir}/etc {envdir}/bin
|
bash {toxinidir}/tools/deploy_rootwrap.sh {toxinidir} {envdir}/etc {envdir}/bin
|
||||||
stestr run {posargs}
|
stestr run {posargs}
|
||||||
|
|
||||||
[testenv:dsvm-functional-gate]
|
[testenv:dsvm-functional-gate]
|
||||||
setenv = {[testenv:dsvm-functional]setenv}
|
setenv = {[testenv:dsvm-functional]setenv}
|
||||||
deps = {[testenv:dsvm-functional]deps}
|
deps = {[testenv:dsvm-functional]deps}
|
||||||
commands =
|
commands =
|
||||||
{toxinidir}/tools/deploy_rootwrap.sh {toxinidir} {envdir}/etc {envdir}/bin
|
bash {toxinidir}/tools/deploy_rootwrap.sh {toxinidir} {envdir}/etc {envdir}/bin
|
||||||
stestr run --exclude-regex (.*MySQL\.|.*PostgreSQL\.|.*test_get_all_devices) {posargs}
|
stestr run --exclude-regex (.*MySQL\.|.*PostgreSQL\.|.*test_get_all_devices) {posargs}
|
||||||
stestr run --combine --concurrency 1 (.*MySQL\.|.*PostgreSQL\.|.*test_get_all_devices) {posargs}
|
stestr run --combine --concurrency 1 (.*MySQL\.|.*PostgreSQL\.|.*test_get_all_devices) {posargs}
|
||||||
|
|
||||||
@ -87,16 +95,16 @@ setenv = {[testenv]setenv}
|
|||||||
deps =
|
deps =
|
||||||
{[testenv:functional]deps}
|
{[testenv:functional]deps}
|
||||||
commands =
|
commands =
|
||||||
{toxinidir}/tools/generate_dhclient_script_for_fullstack.sh {envdir}
|
bash {toxinidir}/tools/generate_dhclient_script_for_fullstack.sh {envdir}
|
||||||
{toxinidir}/tools/deploy_rootwrap.sh {toxinidir} {envdir}/etc {envdir}/bin
|
bash {toxinidir}/tools/deploy_rootwrap.sh {toxinidir} {envdir}/etc {envdir}/bin
|
||||||
stestr run --concurrency 2 {posargs}
|
stestr run --concurrency 2 {posargs}
|
||||||
|
|
||||||
[testenv:dsvm-fullstack-gate]
|
[testenv:dsvm-fullstack-gate]
|
||||||
setenv = {[testenv:dsvm-fullstack]setenv}
|
setenv = {[testenv:dsvm-fullstack]setenv}
|
||||||
deps = {[testenv:dsvm-fullstack]deps}
|
deps = {[testenv:dsvm-fullstack]deps}
|
||||||
commands =
|
commands =
|
||||||
{toxinidir}/tools/generate_dhclient_script_for_fullstack.sh {envdir}
|
bash {toxinidir}/tools/generate_dhclient_script_for_fullstack.sh {envdir}
|
||||||
{toxinidir}/tools/deploy_rootwrap.sh {toxinidir} {envdir}/etc {envdir}/bin
|
bash {toxinidir}/tools/deploy_rootwrap.sh {toxinidir} {envdir}/etc {envdir}/bin
|
||||||
stestr run --concurrency 2 --exclude-regex neutron.tests.fullstack.test_securitygroup.TestSecurityGroupsSameNetwork.test_securitygroup {posargs}
|
stestr run --concurrency 2 --exclude-regex neutron.tests.fullstack.test_securitygroup.TestSecurityGroupsSameNetwork.test_securitygroup {posargs}
|
||||||
stestr run --combine --concurrency 1 neutron.tests.fullstack.test_securitygroup.TestSecurityGroupsSameNetwork.test_securitygroup {posargs}
|
stestr run --combine --concurrency 1 neutron.tests.fullstack.test_securitygroup.TestSecurityGroupsSameNetwork.test_securitygroup {posargs}
|
||||||
|
|
||||||
@ -115,20 +123,18 @@ deps =
|
|||||||
pylint==2.5.3 # GPLv2
|
pylint==2.5.3 # GPLv2
|
||||||
commands=
|
commands=
|
||||||
# If it is easier to add a check via a shell script, consider adding it in this file
|
# If it is easier to add a check via a shell script, consider adding it in this file
|
||||||
sh ./tools/misc-sanity-checks.sh
|
bash ./tools/misc-sanity-checks.sh
|
||||||
{toxinidir}/tools/check_unit_test_structure.sh
|
bash {toxinidir}/tools/check_unit_test_structure.sh
|
||||||
# Checks for coding and style guidelines
|
# Checks for coding and style guidelines
|
||||||
flake8
|
flake8
|
||||||
sh ./tools/coding-checks.sh --pylint '{posargs}'
|
bash ./tools/coding-checks.sh --pylint '{posargs}'
|
||||||
neutron-db-manage --config-file neutron/tests/etc/neutron.conf check_migration
|
neutron-db-manage --config-file neutron/tests/etc/neutron.conf check_migration
|
||||||
python ./tools/list_moved_globals.py
|
python ./tools/list_moved_globals.py
|
||||||
{[testenv:genconfig]commands}
|
{[testenv:genconfig]commands}
|
||||||
{[testenv:bashate]commands}
|
{[testenv:bashate]commands}
|
||||||
{[testenv:bandit]commands}
|
{[testenv:bandit]commands}
|
||||||
{[testenv:genpolicy]commands}
|
{[testenv:genpolicy]commands}
|
||||||
allowlist_externals =
|
allowlist_externals = bash
|
||||||
sh
|
|
||||||
bash
|
|
||||||
|
|
||||||
[testenv:cover]
|
[testenv:cover]
|
||||||
envdir = {toxworkdir}/shared
|
envdir = {toxworkdir}/shared
|
||||||
@ -245,7 +251,7 @@ commands = bash -c "find {toxinidir} \
|
|||||||
|
|
||||||
[testenv:genconfig]
|
[testenv:genconfig]
|
||||||
envdir = {toxworkdir}/shared
|
envdir = {toxworkdir}/shared
|
||||||
commands = {toxinidir}/tools/generate_config_file_samples.sh
|
commands = bash {toxinidir}/tools/generate_config_file_samples.sh
|
||||||
|
|
||||||
[testenv:genpolicy]
|
[testenv:genpolicy]
|
||||||
envdir = {toxworkdir}/shared
|
envdir = {toxworkdir}/shared
|
||||||
@ -264,6 +270,6 @@ commands = bindep test
|
|||||||
[testenv:requirements]
|
[testenv:requirements]
|
||||||
deps =
|
deps =
|
||||||
-egit+https://opendev.org/openstack/requirements#egg=openstack-requirements
|
-egit+https://opendev.org/openstack/requirements#egg=openstack-requirements
|
||||||
allowlist_externals = sh
|
allowlist_externals = bash
|
||||||
commands =
|
commands =
|
||||||
sh -c '{envdir}/src/openstack-requirements/playbooks/files/project-requirements-change.py --req {envdir}/src/openstack-requirements --local {toxinidir} master'
|
bash -c '{envdir}/src/openstack-requirements/playbooks/files/project-requirements-change.py --req {envdir}/src/openstack-requirements --local {toxinidir} master'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user