From 28b882e73793543bd08b3df0bcd206d83575d6f0 Mon Sep 17 00:00:00 2001 From: Matt Clay Date: Wed, 1 Mar 2017 15:48:14 -0800 Subject: [PATCH] Support ansible commands in sanity tests. (#22172) --- test/runner/lib/executor.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/runner/lib/executor.py b/test/runner/lib/executor.py index ff12d71256..a3764eaba5 100644 --- a/test/runner/lib/executor.py +++ b/test/runner/lib/executor.py @@ -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):