mirror of
https://github.com/valitydev/salt.git
synced 2024-11-06 16:45:27 +00:00
Using salt.utils.path.which to find false, on OSX it lives under /usr/bin/
This commit is contained in:
parent
353f9d4eb8
commit
e03ab81b99
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user