From 2f140aed7d3cebb3dd67a31f8fd6846f3c5a480d Mon Sep 17 00:00:00 2001 From: Kent Gibson Date: Mon, 3 Jun 2024 19:56:27 +0800 Subject: [PATCH] tools: tests: shellcheck don't follow sourced file Fix shellcheck SC1091 - not following. Use a directive to prevent shellcheck complaining about sourcing shunit2, which we don't care to check. [1] https://www.shellcheck.net/wiki/SC1091 Signed-off-by: Kent Gibson Link: https://lore.kernel.org/r/20240603115628.102616-8-warthog618@gmail.com Signed-off-by: Bartosz Golaszewski --- tools/gpio-tools-test.bash | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/gpio-tools-test.bash b/tools/gpio-tools-test.bash index 83b05ec..4551dc2 100755 --- a/tools/gpio-tools-test.bash +++ b/tools/gpio-tools-test.bash @@ -3087,4 +3087,5 @@ modprobe gpio-sim || die "unable to load the gpio-sim module" mountpoint /sys/kernel/config/ > /dev/null 2> /dev/null || \ die "configfs not mounted at /sys/kernel/config/" +# shellcheck source=/dev/null . shunit2 -- 2.30.2