mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +00:00
Fix integration test library search path.
This prevents tests from loading modules outside the source tree, which could result in testing the wrong module if a system-wide install is present, or custom modules exist.
This commit is contained in:
@@ -41,6 +41,7 @@ def ansible_environment(args, color=True):
|
|||||||
ANSIBLE_DEPRECATION_WARNINGS='false',
|
ANSIBLE_DEPRECATION_WARNINGS='false',
|
||||||
ANSIBLE_HOST_KEY_CHECKING='false',
|
ANSIBLE_HOST_KEY_CHECKING='false',
|
||||||
ANSIBLE_CONFIG=os.path.abspath(ansible_config),
|
ANSIBLE_CONFIG=os.path.abspath(ansible_config),
|
||||||
|
ANSIBLE_LIBRARY='/dev/null',
|
||||||
PYTHONPATH=os.path.abspath('lib'),
|
PYTHONPATH=os.path.abspath('lib'),
|
||||||
PAGER='/bin/cat',
|
PAGER='/bin/cat',
|
||||||
PATH=path,
|
PATH=path,
|
||||||
|
|||||||
Reference in New Issue
Block a user