]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
script: allow use of run_tox.sh with default tox envlist
authorJohn Mulligan <jmulligan@redhat.com>
Tue, 19 Mar 2024 17:28:53 +0000 (13:28 -0400)
committerAdam King <adking@redhat.com>
Wed, 27 Mar 2024 14:52:11 +0000 (10:52 -0400)
commit25311e2d513194a929f6006d424ed7be56fd36de
tree74efeefa68948f287611d7dc04bfc07dbe1fb1a5
parent323d23dc228bbcb7f16f188fdc9c0dcb801844be
script: allow use of run_tox.sh with default tox envlist

Add a "magic" --tox-envs value to force the run_tox.sh script to
defer to the tox.ini file's envlist rather than specifying a
custom env list. Pass `--tox-envs __tox_defaults__` to the script
to use whatever the tox.ini defaults are.

Adding a magic value like this avoids the need to make breaking changes
(or any changes) to the current cmake "code" used to invoke the
tox tests from make check. It's a little hacky but the funny looking
value should make it clear that it's special. In particular it avoids
adding new conditionals to the cmake files.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit 00584a5619ba1c20d0c017f7326c8e9bd376e324)
src/script/run_tox.sh