tests: Add skips for tests that require sudo
This commit is contained in:
parent
26a82113b0
commit
d04c62a224
@ -27,6 +27,8 @@
|
||||
# vim: ft=zsh sw=2 ts=2 et
|
||||
# -------------------------------------------------------------------------------------------------
|
||||
|
||||
type sudo >/dev/null || skip_test='sudo must be present'
|
||||
|
||||
BUFFER='>/tmp >/tmp sudo echo >/tmp foo'
|
||||
|
||||
expected_region_highlight=(
|
||||
|
@ -27,6 +27,8 @@
|
||||
# vim: ft=zsh sw=2 ts=2 et
|
||||
# -------------------------------------------------------------------------------------------------
|
||||
|
||||
type sudo >/dev/null || skip_test='sudo must be present'
|
||||
|
||||
# Tests three codepaths:
|
||||
# * -i (no argument)
|
||||
# * -C3 (pasted argument)
|
||||
|
@ -27,6 +27,8 @@
|
||||
# vim: ft=zsh sw=2 ts=2 et
|
||||
# -------------------------------------------------------------------------------------------------
|
||||
|
||||
type sudo >/dev/null || skip_test='sudo must be present'
|
||||
|
||||
setopt interactive_comments
|
||||
BUFFER='sudo -u # comment'
|
||||
|
||||
|
@ -27,6 +27,8 @@
|
||||
# vim: ft=zsh sw=2 ts=2 et
|
||||
# -------------------------------------------------------------------------------------------------
|
||||
|
||||
type sudo >/dev/null || skip_test='sudo must be present'
|
||||
|
||||
BUFFER='sudo -u >/tmp otheruser ls; sudo ls; sudo -i ls'
|
||||
|
||||
expected_region_highlight=(
|
||||
|
@ -27,6 +27,8 @@
|
||||
# vim: ft=zsh sw=2 ts=2 et
|
||||
# -------------------------------------------------------------------------------------------------
|
||||
|
||||
type sudo >/dev/null || skip_test='sudo must be present'
|
||||
|
||||
BUFFER='sudo >/tmp -u otheruser ls'
|
||||
|
||||
expected_region_highlight=(
|
||||
|
@ -27,6 +27,8 @@
|
||||
# vim: ft=zsh sw=2 ts=2 et
|
||||
# -------------------------------------------------------------------------------------------------
|
||||
|
||||
type sudo >/dev/null || skip_test='sudo must be present'
|
||||
|
||||
BUFFER='sudo 2>./. -u otheruser ls'
|
||||
|
||||
expected_region_highlight=(
|
||||
|
Loading…
x
Reference in New Issue
Block a user