From 8d37377644b17ca3bde9d9af67110412018d86bf Mon Sep 17 00:00:00 2001 From: Daniel Shahaf Date: Thu, 7 Dec 2017 01:04:13 +0000 Subject: [PATCH] Followup to last: Don't require 'sudo' to test prefix redirections. --- highlighters/main/test-data/prefix-redirection.zsh | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/highlighters/main/test-data/prefix-redirection.zsh b/highlighters/main/test-data/prefix-redirection.zsh index 53c699f..6a13aa6 100644 --- a/highlighters/main/test-data/prefix-redirection.zsh +++ b/highlighters/main/test-data/prefix-redirection.zsh @@ -27,15 +27,13 @@ # 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' +BUFFER='>/tmp >/tmp command echo >/tmp foo' expected_region_highlight=( "2 5 path" # /tmp "8 11 path" # /tmp - "13 16 precommand" # sudo - "18 21 builtin" # echo - "24 27 path" # /tmp - "29 31 default" # foo + "13 19 precommand" # command + "21 24 builtin" # echo + "27 30 path" # /tmp + "32 34 default" # foo )