Fix ansible-test python and pip executable search.

This commit is contained in:
Matt Clay 2018-03-14 11:35:59 -07:00
commit a8487feb70
14 changed files with 81 additions and 75 deletions

View file

@ -221,7 +221,11 @@ class SanityCodeSmellTest(SanityTest):
:type targets: SanityTargets
:rtype: SanityResult
"""
cmd = [self.path]
if self.path.endswith('.py'):
cmd = [args.python_executable, self.path]
else:
cmd = [self.path]
env = ansible_environment(args, color=False)
pattern = None