From d603cd41feaef3d9beaa7f133ded59d6809b4916 Mon Sep 17 00:00:00 2001 From: Matt Clay Date: Fri, 21 Sep 2018 12:55:04 -0700 Subject: [PATCH] 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. --- test/runner/lib/ansible_util.py | 1 + 1 file changed, 1 insertion(+) diff --git a/test/runner/lib/ansible_util.py b/test/runner/lib/ansible_util.py index 545d067158d..ab2fa54d3d1 100644 --- a/test/runner/lib/ansible_util.py +++ b/test/runner/lib/ansible_util.py @@ -41,6 +41,7 @@ def ansible_environment(args, color=True): ANSIBLE_DEPRECATION_WARNINGS='false', ANSIBLE_HOST_KEY_CHECKING='false', ANSIBLE_CONFIG=os.path.abspath(ansible_config), + ANSIBLE_LIBRARY='/dev/null', PYTHONPATH=os.path.abspath('lib'), PAGER='/bin/cat', PATH=path,