tests: Fixup last commit.

This commit is contained in:
Daniel Shahaf 2020-03-16 18:57:28 +00:00
parent 8f7e9b2af4
commit 6243c99f41

View file

@ -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'