tests: allow external-sources for shellcheck

While introducing scripts/build_step.inc.sh the tests start to fail as
the script is included and each shell script is tested separately. By
adding the option --external-sources to shellcheck, the related warnings
are not reported.

Signed-off-by: Niels de Vos <ndevos@redhat.com>
(cherry picked from commit fd62a5897a)
This commit is contained in:
Niels de Vos 2020-04-24 12:29:38 +02:00 committed by mergify[bot]
parent 00324171f1
commit 0d12fb6a4e

View File

@ -44,7 +44,7 @@ fi
run_check '.*\.md' mdl --style scripts/mdl-style.rb
# Install via: dnf install shellcheck
run_check '.*\.(ba)?sh' shellcheck
run_check '.*\.(ba)?sh' shellcheck --external-sources
run_check '.*\.(ba)?sh' bash -n
# Install via: pip install yamllint