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