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:
parent
8d37377644
commit
1ad5c1f40f
@ -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)
|
||||||
|
@ -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'
|
||||||
|
@ -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'
|
||||||
|
|
||||||
|
@ -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'
|
||||||
|
|
||||||
|
@ -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'
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user