Fix test error in localectl completion

localectl may emit an error for whatever reason. The localectl
completion runs localectl in a command substitution so our stderr
redirect doesn't apply. Just redirect to null. Hopefully this fixes the
tests.
This commit is contained in:
ridiculousfish 2022-04-21 20:53:59 -07:00
parent 4e1b5e733f
commit 939ce10616

View File

@ -6,7 +6,7 @@ for cmd in $commands
complete -c localectl -n "not __fish_seen_subcommand_from $commands" -a $cmd
end
set -l localevars LANG LC_MESSAGES LC_{CTYPE,NUMERIC,TIME,COLLATE,MONETARY,MESSAGES,PAPER,NAME,ADDRESS,TELEPHONE,MEASUREMENT,IDENTIFICATION,ALL}
set -l locales $localevars=(localectl list-locales)
set -l locales $localevars=(localectl list-locales 2>/dev/null)
function __fish_localectl_layout
set -l cmd (commandline -poc)