mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fix which test in PR#28812
This commit is contained in:
parent
20033eeeb7
commit
18571000c5
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