summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2020-12-11 16:04:15 +0100
committerThomas Haller <thaller@redhat.com>2020-12-11 16:08:46 +0100
commit76f3cf41ac7c7bb488a8cce6feb673eba861ad8f (patch)
treefff93c257808ae13a6e974f52213d46d45a6b587 /tools
parente5699dbcb7aa56b49b9fae442e61fc254249b595 (diff)
downloadNetworkManager-76f3cf41ac7c7bb488a8cce6feb673eba861ad8f.tar.gz
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.
Diffstat (limited to 'tools')
-rwxr-xr-xtools/check-gitlab-ci.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/check-gitlab-ci.sh b/tools/check-gitlab-ci.sh
index da5fcc597b..30e64a99fa 100755
--- a/tools/check-gitlab-ci.sh
+++ b/tools/check-gitlab-ci.sh
@@ -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