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.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):