summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKerin Millar <kfm@plushkava.net>2024-08-03 05:29:29 +0100
committerKerin Millar <kfm@plushkava.net>2024-08-03 05:29:29 +0100
commit9240fe699926f4f413ad4b2bb09ee66bf3834aa7 (patch)
tree6faa7a354dc477effb2c284850da96049e711109
parenttest-functions: jettison a few shellcheck exemptions (diff)
downloadgentoo-functions-9240fe699926f4f413ad4b2bb09ee66bf3834aa7.tar.gz
gentoo-functions-9240fe699926f4f413ad4b2bb09ee66bf3834aa7.tar.bz2
gentoo-functions-9240fe699926f4f413ad4b2bb09ee66bf3834aa7.zip
test-functions: add several shellcheck exemptions
Notably, SC2317 and SC3034 in the global scope. The former produces false positives whereas the latter permits the use of local. Signed-off-by: Kerin Millar <kfm@plushkava.net>
-rwxr-xr-xtest-functions4
1 files changed, 3 insertions, 1 deletions
diff --git a/test-functions b/test-functions
index 7d75eda..8acb731 100755
--- a/test-functions
+++ b/test-functions
@@ -1,5 +1,5 @@
#!/bin/sh
-# shellcheck disable=2015,2164,2317
+# shellcheck disable=1007,2015,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
@@ -810,6 +810,7 @@ test_quote_args() {
i=0
while [ "$(( i += 1 ))" -le 255 ]; do
fmt=$(printf '\%o' "$i")
+ # shellcheck disable=2059
str=$(printf "$fmt.")
POSIXLY_CORRECT= quote_args "${str%.}" || break
done | cksum | {
@@ -866,6 +867,7 @@ testnum=0
rc=0
if [ "${PORTAGE_BIN_PATH}" ] && [ "${S}" ]; then
+ # shellcheck disable=2034
genfun_basedir=${S}
fi