[redhat] self-test: shellcheck: ignore rhdocs

JIRA: INTERNAL
Upstream Status: RHEL only

The documentation project has introduced a shell script that does not pass
the kernel shellcheck. Because this is a separate project, let's ignore
any scripts in the rhdocs subtree.

Signed-off-by: Scott Weaver <scweaver@redhat.com>
This commit is contained in:
Scott Weaver 2024-03-20 14:20:19 -04:00
parent ddae234f3a
commit 3f8f53d5c3
1 changed files with 1 additions and 1 deletions

View File

@ -7,6 +7,6 @@ load test-lib.bash
if ! test -x /usr/bin/shellcheck; then
skip "The ShellCheck package is not installed"
fi
run shellcheck $(find $BATS_TEST_DIRNAME/.. -name "*.sh" -not -path "$BATS_TEST_DIRNAME/../rpm/*")
run shellcheck $(find $BATS_TEST_DIRNAME/.. -name "*.sh" -not -path "$BATS_TEST_DIRNAME/../rpm/*" -not -path "$BATS_TEST_DIRNAME/../rhdocs/*")
check_status
}