Using salt.utils.path.which to find false, on OSX it lives under /usr/bin/

This commit is contained in:
Gareth J. Greenaway 2019-06-11 12:54:14 -07:00
parent 353f9d4eb8
commit e03ab81b99
No known key found for this signature in database
GPG Key ID: 10B62F8A7CAD7A41

View File

@ -509,7 +509,7 @@ class PipStateTest(ModuleCase, SaltReturnAssertsMixin):
)
)
false_cmd = '/bin/false'
false_cmd = salt.utils.path.which('false')
if salt.utils.platform.is_windows():
false_cmd = 'exit 1 >nul'
try: