]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
tests/suite/testdane.sh: just skip on hosts with a long hostname
authorAlexander Sosedkin <asosedkin@redhat.com>
Mon, 19 Jan 2026 17:53:21 +0000 (18:53 +0100)
committerAlexander Sosedkin <asosedkin@redhat.com>
Wed, 21 Jan 2026 16:49:45 +0000 (17:49 +0100)
Signed-off-by: Alexander Sosedkin <asosedkin@redhat.com>
tests/suite/testdane.sh

index 28d87fa1109a1ad8a3ccd4777bc007d949fbda76..0e9be20f1ede2500d5ac902d03a0d64469ba0f5b 100755 (executable)
@@ -34,6 +34,15 @@ if test "${WINDIR}" != ""; then
        exit 77
 fi
 
+# First test we're not hitting the overly long DNS name issue.
+# We observe that happening when (podman) container names exceed 63 chars.
+# https://gitlab.com/gitlab-org/gitlab-runner/-/issues/27763#note_3024302939
+if "${DANETOOL}" --check example.com --local-dns 2>&1 | \
+               grep "Label length overflow" >/dev/null; then
+       echo "DNS name too long (container name >63 chars?)"
+       exit 77
+fi
+
 . "${srcdir}/../scripts/common.sh"
 
 # Fine hosts