1
1
[tox]
2
2
envlist = docs,py38,pep8
3
3
minversion = 3.18.0
4
- skipsdist = True
4
+ skipsdist = False
5
5
ignore_basepython_conflict = True
6
6
7
7
[testenv]
@@ -12,16 +12,24 @@ setenv = VIRTUAL_ENV={envdir}
12
12
OS_STDERR_CAPTURE ={env:OS_STDERR_CAPTURE:true}
13
13
OS_TEST_TIMEOUT ={env:OS_TEST_TIMEOUT:180}
14
14
PYTHONWARNINGS =default::DeprecationWarning,ignore::DeprecationWarning:distutils,ignore::DeprecationWarning:site
15
- passenv = TRACE_FAILONLY GENERATE_HASHES http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY TOX_ENV_SRC_MODULES
15
+ passenv = TRACE_FAILONLY
16
+ GENERATE_HASHES
17
+ http_proxy
18
+ HTTP_PROXY
19
+ https_proxy
20
+ HTTPS_PROXY
21
+ no_proxy
22
+ NO_PROXY
23
+ TOX_ENV_SRC_MODULES
16
24
usedevelop = True
17
25
deps =
18
26
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/yoga}
19
27
-r{toxinidir}/requirements.txt
20
28
-r{toxinidir}/test-requirements.txt
21
29
hacking>=3.0.1,<3.1.0 # Apache-2.0
22
- allowlist_externals = sh
30
+ allowlist_externals = bash
23
31
commands =
24
- {toxinidir}/tools/pip_install_src_modules.sh " {toxinidir}"
32
+ bash {toxinidir}/tools/pip_install_src_modules.sh " {toxinidir}"
25
33
stestr run {posargs}
26
34
27
35
# there is also secret magic in ostestr which lets you run in a fail only
@@ -63,7 +71,7 @@ setenv = {[testenv:functional]setenv}
63
71
deps =
64
72
{[testenv:functional]deps}
65
73
commands =
66
- {toxinidir}/tools/deploy_rootwrap.sh {toxinidir} {envdir}/etc {envdir}/bin
74
+ bash {toxinidir}/tools/deploy_rootwrap.sh {toxinidir} {envdir}/etc {envdir}/bin
67
75
stestr run --exclude-regex (.*MySQL\.|.*PostgreSQL\.) {posargs}
68
76
stestr run --combine --concurrency 1 (.*MySQL\.|.*PostgreSQL\.) {posargs}
69
77
@@ -80,16 +88,16 @@ setenv = {[testenv]setenv}
80
88
deps =
81
89
{[testenv:functional]deps}
82
90
commands =
83
- {toxinidir}/tools/generate_dhclient_script_for_fullstack.sh {envdir}
84
- {toxinidir}/tools/deploy_rootwrap.sh {toxinidir} {envdir}/etc {envdir}/bin
91
+ bash {toxinidir}/tools/generate_dhclient_script_for_fullstack.sh {envdir}
92
+ bash {toxinidir}/tools/deploy_rootwrap.sh {toxinidir} {envdir}/etc {envdir}/bin
85
93
stestr run --concurrency 2 {posargs}
86
94
87
95
[testenv:dsvm-fullstack-gate]
88
96
setenv = {[testenv:dsvm-fullstack]setenv}
89
97
deps = {[testenv:dsvm-fullstack]deps}
90
98
commands =
91
- {toxinidir}/tools/generate_dhclient_script_for_fullstack.sh {envdir}
92
- {toxinidir}/tools/deploy_rootwrap.sh {toxinidir} {envdir}/etc {envdir}/bin
99
+ bash {toxinidir}/tools/generate_dhclient_script_for_fullstack.sh {envdir}
100
+ bash {toxinidir}/tools/deploy_rootwrap.sh {toxinidir} {envdir}/etc {envdir}/bin
93
101
stestr run --concurrency 2 --black-regex neutron.tests.fullstack.test_securitygroup.TestSecurityGroupsSameNetwork.test_securitygroup {posargs}
94
102
stestr run --combine --concurrency 1 neutron.tests.fullstack.test_securitygroup.TestSecurityGroupsSameNetwork.test_securitygroup {posargs}
95
103
@@ -108,20 +116,18 @@ deps =
108
116
pylint ==2.5.3 # GPLv2
109
117
commands =
110
118
# If it is easier to add a check via a shell script, consider adding it in this file
111
- sh ./tools/misc-sanity-checks.sh
112
- {toxinidir}/tools/check_unit_test_structure.sh
119
+ bash ./tools/misc-sanity-checks.sh
120
+ bash {toxinidir}/tools/check_unit_test_structure.sh
113
121
# Checks for coding and style guidelines
114
122
flake8
115
- sh ./tools/coding-checks.sh --pylint ' {posargs}'
123
+ bash ./tools/coding-checks.sh --pylint ' {posargs}'
116
124
neutron-db-manage --config-file neutron/tests/etc/neutron.conf check_migration
117
125
python ./tools/list_moved_globals.py
118
126
{[testenv:genconfig]commands}
119
127
{[testenv:bashate]commands}
120
128
{[testenv:bandit]commands}
121
129
{[testenv:genpolicy]commands}
122
- allowlist_externals =
123
- sh
124
- bash
130
+ allowlist_externals = bash
125
131
126
132
[testenv:cover]
127
133
envdir = {toxworkdir}/shared
@@ -238,7 +244,7 @@ commands = bash -c "find {toxinidir} \
238
244
239
245
[testenv:genconfig]
240
246
envdir = {toxworkdir}/shared
241
- commands = {toxinidir}/tools/generate_config_file_samples.sh
247
+ commands = bash {toxinidir}/tools/generate_config_file_samples.sh
242
248
243
249
[testenv:genpolicy]
244
250
envdir = {toxworkdir}/shared
@@ -257,6 +263,6 @@ commands = bindep test
257
263
[testenv:requirements]
258
264
deps =
259
265
-egit+https://opendev.org/openstack/requirements# egg=openstack-requirements
260
- allowlist_externals = sh
266
+ allowlist_externals = bash
261
267
commands =
262
- sh -c ' {envdir}/src/openstack-requirements/playbooks/files/project-requirements-change.py --req {envdir}/src/openstack-requirements --local {toxinidir} master'
268
+ bash -c ' {envdir}/src/openstack-requirements/playbooks/files/project-requirements-change.py --req {envdir}/src/openstack-requirements --local {toxinidir} master'
0 commit comments