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:
parent
2ee3a5aa07
commit
28b882e737
1 changed files with 3 additions and 1 deletions
|
@ -769,9 +769,11 @@ def command_sanity_code_smell(args, _):
|
||||||
and os.path.isfile(p)
|
and os.path.isfile(p)
|
||||||
and os.path.basename(p) not in skip_tests)
|
and os.path.basename(p) not in skip_tests)
|
||||||
|
|
||||||
|
env = ansible_environment(args)
|
||||||
|
|
||||||
for test in tests:
|
for test in tests:
|
||||||
display.info('Code smell check using %s' % os.path.basename(test))
|
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):
|
def command_sanity_validate_modules(args, targets):
|
||||||
|
|
Loading…
Reference in a new issue