mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-24 21:14:00 -07:00
Fix ansible-test python and pip executable search.
This commit is contained in:
parent
dd37857884
commit
a8487feb70
14 changed files with 81 additions and 75 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue