ansible-test - Fix collection import test priming.

The bug was introduced in https://github.com/ansible/ansible/pull/76137
pull/76258/head
Matt Clay 3 years ago
parent 74dc830dd4
commit d7fbb209b4

@ -135,9 +135,6 @@ class ImportTest(SanityMultipleVersion):
if virtualenv_yaml is False: 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.') 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 = ansible_environment(args, color=False)
env.update( env.update(
@ -156,6 +153,9 @@ class ImportTest(SanityMultipleVersion):
PYTHONPATH=':'.join((get_ansible_test_python_path(), env["PYTHONPATH"])), PYTHONPATH=':'.join((get_ansible_test_python_path(), env["PYTHONPATH"])),
) )
if args.prime_venvs:
continue
display.info(import_type + ': ' + data, verbosity=4) display.info(import_type + ': ' + data, verbosity=4)
cmd = ['importer.py'] cmd = ['importer.py']

Loading…
Cancel
Save