tests: Fixup last commit.

This commit is contained in:
Daniel Shahaf committed 2020-03-16 18:57:28 +00:00
1 parent 8f7e9b2af4
commit 6243c99f41
1 file changed
+6 -1
@@ -28,7 +28,12 @@
# vim: ft=zsh sw=2 ts=2 et
# -------------------------------------------------------------------------------------------------
unhash sudo
# Simulate sudo not being installed.
#
# The 'hash' step is because, if sudo _really_ isn't installed, 'unhash sudo'
# would error out and break the test.
hash sudo=/usr/bin/env && unhash sudo
local PATH
BUFFER=$'sudo ls'