mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #28950 from DSRCompany/pr/28812_which
PR 28812 which test fix
This commit is contained in:
commit
5b680c938a
1 changed files with 3 additions and 3 deletions
|
@ -71,9 +71,9 @@ class TestWhich(integration.TestCase):
|
|||
False,
|
||||
# The second, iterating through $PATH, should also return False,
|
||||
# still checking for Linux
|
||||
False,
|
||||
# Lastly return True, this is the windows check.
|
||||
True
|
||||
# which() will add 4 extra paths to the given one, os.access will
|
||||
# be called 5 times
|
||||
False, False, False, False, False
|
||||
]
|
||||
# Let's patch os.environ to provide a custom PATH variable
|
||||
with patch.dict(os.environ, {'PATH': '/bin'}):
|
||||
|
|
Loading…
Add table
Reference in a new issue