ansible-test - Fix pslint powershell selection (#86593)

This was overlooked in https://github.com/ansible/ansible/pull/86238
This commit is contained in:
Matt Clay
2026-02-24 17:52:53 +00:00
committed by GitHub
parent a751010bea
commit 87265284fa
@@ -66,7 +66,7 @@ class PslintTest(SanityVersionNeutral):
paths = [target.path for target in targets.include]
if not find_executable('pwsh', required='warning'):
if not find_executable('pwsh', required='warning', path=env.get('PATH')):
return SanitySkipped(self.name)
cmds = []