[stable-2.12] ansible-test - Fix collection import test priming.
The bug was introduced in https://github.com/ansible/ansible/pull/76137
(cherry picked from commit d7fbb209b4)
Co-authored-by: Matt Clay <matt@mystile.com>
This commit is contained in:
@ -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']
|
||||
|
||||
Reference in New Issue
Block a user