Followup to parents: Restore sudo-* tests on platforms that don't have sudo.

Travis (as currently configured) is one such platform.
This commit is contained in:
Daniel Shahaf 2017-12-07 01:16:02 +00:00
parent 8d37377644
commit 1ad5c1f40f
5 changed files with 5 additions and 5 deletions

View File

@ -27,7 +27,7 @@
# vim: ft=zsh sw=2 ts=2 et # vim: ft=zsh sw=2 ts=2 et
# ------------------------------------------------------------------------------------------------- # -------------------------------------------------------------------------------------------------
type sudo >/dev/null || skip_test='sudo must be present' sudo(){}
# Tests three codepaths: # Tests three codepaths:
# * -i (no argument) # * -i (no argument)

View File

@ -27,7 +27,7 @@
# vim: ft=zsh sw=2 ts=2 et # vim: ft=zsh sw=2 ts=2 et
# ------------------------------------------------------------------------------------------------- # -------------------------------------------------------------------------------------------------
type sudo >/dev/null || skip_test='sudo must be present' sudo(){}
setopt interactive_comments setopt interactive_comments
BUFFER='sudo -u # comment' BUFFER='sudo -u # comment'

View File

@ -27,7 +27,7 @@
# vim: ft=zsh sw=2 ts=2 et # vim: ft=zsh sw=2 ts=2 et
# ------------------------------------------------------------------------------------------------- # -------------------------------------------------------------------------------------------------
type sudo >/dev/null || skip_test='sudo must be present' sudo(){}
BUFFER='sudo -u >/tmp otheruser ls; sudo ls; sudo -i ls' BUFFER='sudo -u >/tmp otheruser ls; sudo ls; sudo -i ls'

View File

@ -27,7 +27,7 @@
# vim: ft=zsh sw=2 ts=2 et # vim: ft=zsh sw=2 ts=2 et
# ------------------------------------------------------------------------------------------------- # -------------------------------------------------------------------------------------------------
type sudo >/dev/null || skip_test='sudo must be present' sudo(){}
BUFFER='sudo >/tmp -u otheruser ls' BUFFER='sudo >/tmp -u otheruser ls'

View File

@ -27,7 +27,7 @@
# vim: ft=zsh sw=2 ts=2 et # vim: ft=zsh sw=2 ts=2 et
# ------------------------------------------------------------------------------------------------- # -------------------------------------------------------------------------------------------------
type sudo >/dev/null || skip_test='sudo must be present' sudo(){}
BUFFER='sudo 2>./. -u otheruser ls' BUFFER='sudo 2>./. -u otheruser ls'