mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
Support ansible commands in sanity tests. (#22172)
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user