1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Support ansible commands in sanity tests. (#22172)

This commit is contained in:
Matt Clay 2017-03-01 15:48:14 -08:00 committed by GitHub
parent 2ee3a5aa07
commit 28b882e737

View file

@ -769,9 +769,11 @@ def command_sanity_code_smell(args, _):
and os.path.isfile(p)
and os.path.basename(p) not in skip_tests)
env = ansible_environment(args)
for test in tests:
display.info('Code smell check using %s' % os.path.basename(test))
run_command(args, [test])
run_command(args, [test], env=env)
def command_sanity_validate_modules(args, targets):