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>
export CEPH_BUILD_DIR=$build_dir
# use the wheelhouse prepared by install-deps.sh
export PIP_FIND_LINKS="$tox_path/wheelhouse"
- tox -c $tox_path/tox.ini -e "$tox_envs" "$@"
+ tox_cmd=(tox -c $tox_path/tox.ini)
+ if [ "$tox_envs" != "__tox_defaults__" ]; then
+ tox_cmd+=("-e" "$tox_envs")
+ fi
+ "${tox_cmd[@]}" "$@"
}
main "$@"