You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible/test/lib/ansible_test/_internal/sanity
Matt Clay b3fbc3c156 [stable-2.9] Fix issues with ansible-test --venv option. (#62033)
* Fix ansible-test venv activation.

When using the ansible-test --venv option, an execv wrapper for each python interpreter is now used instead of a symbolic link.

* Fix ansible-test execv wrapper generation.

Use the currently running Python interpreter for the shebang in the execv wrapper instead of the selected interpreter.

This allows the wrapper to work when the selected interpreter is a script instead of a binary.

* Fix ansible-test sanity requirements install.

When running sanity tests on multiple Python versions, install requirements for all versions used instead of only the default version.

* Fix ansible-test --venv when installed.

When running ansible-test from an install, the --venv delegation option needs to make sure the ansible-test code is available in the created virtual environment.

Exposing system site packages does not work because the virtual environment may be for a different Python version than the one on which ansible-test is installed.
(cherry picked from commit c77ab11051)

Co-authored-by: Matt Clay <matt@mystile.com>
5 years ago
..
__init__.py [stable-2.9] Fix issues with ansible-test --venv option. (#62033) 5 years ago
ansible_doc.py Improve ansible-test env display. (#61339) 5 years ago
bin_symlinks.py Additional ansible-test path fixes. (#60300) 5 years ago
compile.py Relocate ansible-test code. (#60147) 5 years ago
ignores.py Relocate ansible-test code. (#60147) 5 years ago
import.py Add a --venv option to ansible-test. (#61422) 5 years ago
integration_aliases.py Overhaul ansible-test test path handling. (#61416) 5 years ago
pep8.py Relocate ansible-test code. (#60147) 5 years ago
pslint.py Relocate ansible-test code. (#60147) 5 years ago
pylint.py Use `.cfg` extension for pylint configs. 5 years ago
rstcheck.py Relocate ansible-test code. (#60147) 5 years ago
sanity_docs.py Relocate ansible-test code. (#60147) 5 years ago
shellcheck.py Relocate ansible-test code. (#60147) 5 years ago
validate_modules.py validate-modules - Use error codes instead of numbers (#60711) 5 years ago
yamllint.py Relocate ansible-test code. (#60147) 5 years ago