tests: allow to skip check-local-gitlab-ci via "$NMTST_SKIP_CHECK_GITLAB_CI"

This will be used on our gitlab-ci tests. We do have a separate,
dedicated test on gitlab-ci for checking that "gitlab-ci.yml" is
correct.

We may intentionally want to violate that condition, but then our
`make check` should not fail.

Add a way to skip that test.
This commit is contained in:
Thomas Haller 2020-12-11 16:04:15 +01:00
parent e5699dbcb7
commit 76f3cf41ac
No known key found for this signature in database
GPG key ID: 29C2366E4DFC5728

View file

@ -2,6 +2,10 @@
set -e
if [ "$NMTST_SKIP_CHECK_GITLAB_CI" = 1 ]; then
exit 0
fi
if [ $# -eq 0 ] ; then
BASEDIR="$(dirname "$(readlink -f "$0")")/.."
elif [ $# -eq 1 ] ; then