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
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
..
cloud ansible-test: vcenter+Worldstream: hide password 5 years ago
integration Update collections integration targets path. (#61523) 5 years ago
provider Fix ansible-test handling of submodules. 5 years ago
sanity [stable-2.9] Fix issues with ansible-test --venv option. (#62033) 5 years ago
units Update collections integration targets path. (#61523) 5 years ago
__init__.py Relocate ansible-test code. (#60147) 5 years ago
ansible_util.py Overhaul ansible-test test path handling. (#61416) 5 years ago
cache.py Relocate ansible-test code. (#60147) 5 years ago
changes.py Relocate ansible-test code. (#60147) 5 years ago
classification.py More ansible-test path handling updates. (#61484) 5 years ago
cli.py Add a --venv option to ansible-test. (#61422) 5 years ago
config.py Add a --venv option to ansible-test. (#61422) 5 years ago
constants.py Relocate ansible-test code. (#60147) 5 years ago
core_ci.py Overhaul ansible-test test path handling. (#61416) 5 years ago
cover.py [stable-2.9] Fix ansible-test coverage path handling. (#61528) (#61593) 5 years ago
coverage_util.py Overhaul ansible-test test path handling. (#61416) 5 years ago
csharp_import_analysis.py Change collection PS util import pattern (#61307) 5 years ago
data.py More ansible-test path handling updates. (#61484) 5 years ago
delegation.py [stable-2.9] Fix issues with ansible-test --venv option. (#62033) 5 years ago
diff.py Relocate ansible-test code. (#60147) 5 years ago
docker_util.py Relocate ansible-test code. (#60147) 5 years ago
env.py Overhaul ansible-test test path handling. (#61416) 5 years ago
executor.py Update collections integration targets path. (#61523) 5 years ago
git.py [stable-2.9] ansible-test - Continue if the git command returns an error (#61605) 5 years ago
http.py Relocate ansible-test code. (#60147) 5 years ago
import_analysis.py More ansible-test path handling updates. (#61484) 5 years ago
init.py Relocate ansible-test code. (#60147) 5 years ago
manage_ci.py Move ansible-test coverage config to test/lib/ 5 years ago
metadata.py Overhaul ansible-test test path handling. (#61416) 5 years ago
payload.py Support delegation testing collections with deps. 5 years ago
powershell_import_analysis.py Change collection PS util import pattern (#61307) 5 years ago
target.py Update collections integration targets path. (#61523) 5 years ago
test.py Show doc URL for sanity test failures 5 years ago
thread.py Relocate ansible-test code. (#60147) 5 years ago
types.py Overhaul ansible-test test path handling. (#61416) 5 years ago
util.py [stable-2.9] ansible-test - Continue if the git command returns an error (#61605) 5 years ago
util_common.py [stable-2.9] Fix issues with ansible-test --venv option. (#62033) 5 years ago
venv.py Improve ansible-test --venv error handling. 5 years ago