Skip to content

Commit baf0d93

Browse files
Ghanshyam Mannmelwitt
authored andcommitted
Define new functional test tox env for placement gate to run
We have placement-nova-tox-functional-py38 job defined and run on placement gate[1] to run the nova functional test excluding api and notification _sample_tests, and db-related tests but that job skip those tests via tox_extra_args which is not right way to do as we currently facing error when tox_extra_args is included in tox siblings task - https://opendev.org/zuul/zuul-jobs/commit/c02c28a982da8d5a9e7b4ca38d30967f6cd1531d - https://zuul.openstack.org/build/a8c186b2c7124856ae32477f10e2b9a4 Let's define a new tox env which can exclude the required test in stestr command itself. [1] https://opendev.org/openstack/placement/src/commit/bd5b19c00e1ab293fc157f4699bc4f4719731c25/.zuul.yaml#L83 Change-Id: I20d6339a5203aed058f432f68e2ec1af57030401 (cherry picked from commit 7b063e4) (cherry picked from commit 64f5c1c)
1 parent 0190d58 commit baf0d93

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tox.ini

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,16 @@ deps = {[testenv:functional]deps}
126126
commands =
127127
{[testenv:functional]commands}
128128

129+
[testenv:functional-without-sample-db-tests]
130+
description =
131+
Run functional tests by excluding the API|Notification
132+
sample tests and DB tests. This env is used in
133+
placement-nova-tox-functional-py38 job which is defined and
134+
run in placement.
135+
deps = {[testenv:functional]deps}
136+
commands =
137+
stestr --test-path=./nova/tests/functional run --exclude-regex '((?:api|notification)_sample_tests|functional\.db\.)' {posargs}
138+
129139
[testenv:functional-py39]
130140
description =
131141
Run functional tests using python3.9.

0 commit comments

Comments
 (0)