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>
This commit is contained in:
Niels de Vos 2020-04-24 12:29:38 +02:00 committed by mergify[bot]
parent 52fa4f10da
commit fd62a5897a

View File

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