diff options
author | 2024-08-08 09:54:43 +0100 | |
---|---|---|
committer | 2024-08-11 11:10:59 +0100 | |
commit | 414feeebda73ef58c07a411596569372bbcc19c8 (patch) | |
tree | 1b1019c3a777136adeb75142b5860ff141012ee5 /test-functions | |
parent | test-functions: declare local variables where possible (diff) | |
download | gentoo-functions-414feeebda73ef58c07a411596569372bbcc19c8.tar.gz gentoo-functions-414feeebda73ef58c07a411596569372bbcc19c8.tar.bz2 gentoo-functions-414feeebda73ef58c07a411596569372bbcc19c8.zip |
test-functions: silence several shellcheck false-positives
Signed-off-by: Kerin Millar <kfm@plushkava.net>
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'test-functions')
-rwxr-xr-x | test-functions | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test-functions b/test-functions index 00a128a..275d32f 100755 --- a/test-functions +++ b/test-functions @@ -1,5 +1,5 @@ #!/bin/sh -# shellcheck disable=1007,2015,2164,2317,3043 +# shellcheck disable=1007,2015,2031,2164,2317,3043 # Requires mktemp(1), which is not a standard utility, but is commonly # available. The implementations provided by GNU coreutils, busybox and toybox @@ -265,6 +265,7 @@ test_esyslog() { should_log=$2 shift 2 test_description="esyslog $(quote_args "$@")" + # shellcheck disable=2034 logged=$(EINFO_LOG=1; esyslog "$@") case $? in 0) @@ -694,6 +695,7 @@ test_whenceforth() { case ${printf_cmd} in /*) printf() { "${printf_cmd}" "$@"; } esac + # shellcheck disable=2030 PATH=${path} whenceforth "$@" >/dev/null ) |