summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKerin Millar <kfm@plushkava.net>2024-08-08 09:54:43 +0100
committerSam James <sam@gentoo.org>2024-08-11 11:10:59 +0100
commit414feeebda73ef58c07a411596569372bbcc19c8 (patch)
tree1b1019c3a777136adeb75142b5860ff141012ee5
parenttest-functions: declare local variables where possible (diff)
downloadgentoo-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>
-rwxr-xr-xtest-functions4
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
)