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>
2019-09-09 20:35:16 -07:00
..
__init__.py [stable-2.9] Fix issues with ansible-test --venv option. (#62033) 2019-09-09 20:35:16 -07:00
ansible_doc.py Improve ansible-test env display. (#61339) 2019-08-26 14:02:55 -07:00
bin_symlinks.py Additional ansible-test path fixes. (#60300) 2019-08-08 23:51:03 -07:00
compile.py
ignores.py
import.py Add a --venv option to ansible-test. (#61422) 2019-08-28 09:10:17 -07:00
integration_aliases.py Overhaul ansible-test test path handling. (#61416) 2019-08-27 23:40:06 -07:00
pep8.py
pslint.py
pylint.py Use .cfg extension for pylint configs. 2019-08-24 07:25:19 -07:00
rstcheck.py
sanity_docs.py
shellcheck.py
validate_modules.py validate-modules - Use error codes instead of numbers (#60711) 2019-08-28 14:12:56 -07:00
yamllint.py