]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
pybind/mgr: use tox.ini envlist defaults when run via cmake
authorJohn Mulligan <jmulligan@redhat.com>
Tue, 7 May 2024 18:06:05 +0000 (14:06 -0400)
committerJohn Mulligan <jmulligan@redhat.com>
Thu, 13 Jun 2024 14:14:29 +0000 (10:14 -0400)
Instead of having to remember there are two different envlists, one
default in tox.ini, one contained in CMakeLists.txt have CMakeLists.txt
simply reuse what is in tox.ini. Now, the python programmer who runs
`tox r` should not be surprised if something goes awry during `make
check` simply because `make check` was running a different set of
checks.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
src/pybind/mgr/CMakeLists.txt

index 0b706c74edb23c82f49dbaf920a635a83eea052e..b2a8ac9a325dce92f8ce0bdb5aeef08b02d2f1e8 100644 (file)
@@ -13,7 +13,7 @@ if(WITH_MGR_ROOK_CLIENT)
 endif()
 if(WITH_TESTS)
   include(AddCephTest)
-  add_tox_test(mgr ${CMAKE_CURRENT_SOURCE_DIR} TOX_ENVS py3 py37 mypy flake8 jinjalint nooptional)
+  add_tox_test(mgr ${CMAKE_CURRENT_SOURCE_DIR} TOX_ENVS __tox_defaults__)
 endif()
 
 # Location needs to match default setting for mgr_module_path, currently: