From: Bart Van Assche Date: Tue, 19 Jun 2018 20:23:46 +0000 (-0700) Subject: Annotate include statements in shell scripts where the source file is a variable X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=520fee0301b336b3e7c2ef211f3c7917508ce4fc;p=users%2Fsagi%2Fblktests.git Annotate include statements in shell scripts where the source file is a variable This causes shellcheck to stop complaining about these include statements. Reviewed-by: Johannes Thumshirn Signed-off-by: Bart Van Assche --- diff --git a/check b/check index 10c7acd..1c0ad20 100755 --- a/check +++ b/check @@ -23,6 +23,7 @@ _found_test() { unset DESCRIPTION QUICK TIMED requires device_requires test test_device + # shellcheck disable=SC1090 if ! . "tests/${test_name}"; then return 1 fi @@ -395,6 +396,7 @@ _run_test() { CHECK_DMESG=1 DMESG_FILTER=cat + # shellcheck disable=SC1090 . "tests/${TEST_NAME}" if declare -fF test >/dev/null; then @@ -435,6 +437,7 @@ _run_group() { local tests=("$@") local group="${tests[0]%/*}" + # shellcheck disable=SC1090 . "tests/${group}/group" if declare -fF group_requires >/dev/null && ! group_requires; then