Simplify tox targets

We no longer run some of the functional tests with pifpaf, so we can
run both unit tests and functional tests in a single run.

Also debug targets are no longer useful because again functional tests
with pifpaf are all gone.

Change-Id: I901128e305d7a3502253a275336a5019237d6aad
This commit is contained in:
Takashi Kajinami 2024-02-06 20:17:28 +09:00
parent e223ac14a7
commit 98ab3065f3

27
tox.ini
View File

@ -28,7 +28,7 @@ passenv =
OS_LOG_CAPTURE
AODH_TEST_DRIVERS
commands =
stestr --test-path=./aodh/tests run
stestr --test-path=./aodh/tests run {posargs}
aodh-config-generator
allowlist_externals =
bash
@ -40,14 +40,11 @@ setenv =
PYTHON=coverage run --source aodh --parallel-mode
commands =
coverage erase
stestr run {posargs}
stestr --test-path=./aodh/tests/functional run {posargs}
stestr --test-path=./aodh/tests run {posargs}
coverage combine
coverage html -d cover
coverage xml -o cover/coverage.xml
coverage report
stestr --test-path=./aodh/tests run
coverage report
[testenv:pep8]
deps = hacking>=3.0,<3.1.0
@ -90,26 +87,6 @@ setenv = PYTHONHASHSEED=0
[testenv:debug]
commands = bash -x oslo_debug_helper {posargs}
[testenv:debug-mysql]
deps =
gnocchi[mysql, file]
pifpaf[gnocchi]>=1.0.1
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
.[mysql]
-r{toxinidir}/test-requirements.txt
setenv = OS_TEST_PATH=aodh/tests/functional/
commands = pifpaf -g AODH_TEST_STORAGE_URL run mysql -- oslo_debug_helper {posargs}
[testenv:debug-pgsql]
deps =
gnocchi[postgresql, file]
pifpaf[gnocchi]>=1.0.1
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
.[postgresql]
-r{toxinidir}/test-requirements.txt
setenv = OS_TEST_PATH=aodh/tests/functional/
commands = pifpaf -g AODH_TEST_STORAGE_URL run postgresql -- oslo_debug_helper {posargs}
[flake8]
# W503 line break before binary operator
# W504 line break after binary operator