From d7fbb209b403e782c6e2b7883a106e6dca15b330 Mon Sep 17 00:00:00 2001 From: Matt Clay Date: Mon, 8 Nov 2021 17:31:13 -0800 Subject: [PATCH] ansible-test - Fix collection import test priming. The bug was introduced in https://github.com/ansible/ansible/pull/76137 --- test/lib/ansible_test/_internal/commands/sanity/import.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/lib/ansible_test/_internal/commands/sanity/import.py b/test/lib/ansible_test/_internal/commands/sanity/import.py index 6f0df203960..19a67b4b290 100644 --- a/test/lib/ansible_test/_internal/commands/sanity/import.py +++ b/test/lib/ansible_test/_internal/commands/sanity/import.py @@ -135,9 +135,6 @@ class ImportTest(SanityMultipleVersion): if virtualenv_yaml is False: display.warning(f'Sanity test "{self.name}" ({import_type}) on Python {python.version} may be slow due to missing libyaml support in PyYAML.') - if args.prime_venvs: - continue - env = ansible_environment(args, color=False) env.update( @@ -156,6 +153,9 @@ class ImportTest(SanityMultipleVersion): PYTHONPATH=':'.join((get_ansible_test_python_path(), env["PYTHONPATH"])), ) + if args.prime_venvs: + continue + display.info(import_type + ': ' + data, verbosity=4) cmd = ['importer.py']