main: Fix faulty test

sudo -e does not take a command, so use another flag that does.
This commit is contained in:
Matthew Martin 2018-10-22 17:20:35 -05:00
parent b3f66fc874
commit a88d41e095

View File

@ -28,15 +28,15 @@
# vim: ft=zsh sw=2 ts=2 et # vim: ft=zsh sw=2 ts=2 et
# ------------------------------------------------------------------------------------------------- # -------------------------------------------------------------------------------------------------
alias sde='sudo -e' alias sdb='sudo -b'
alias seu='sde -u' alias sbu='sdb -u'
sudo(){} sudo(){}
BUFFER='seu phy1729 echo foo' BUFFER='sbu phy1729 echo foo'
expected_region_highlight=( expected_region_highlight=(
'1 3 alias' # seu '1 3 alias' # sbu
'1 3 precommand' # seu (sudo) '1 3 precommand' # sbu (sudo)
'5 11 default' # phy1729 '5 11 default' # phy1729
'13 16 commmand "issue #540"' # echo (not builtin) '13 16 commmand "issue #540"' # echo (not builtin)
'18 20 default' # foo '18 20 default' # foo