From: Artem Boldariev Date: Mon, 17 Jan 2022 14:32:10 +0000 (+0200) Subject: doth test: use extended reg. expression to check for HTTP/2 support X-Git-Tag: v9.18.0~12^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4884ab03407c7cc84365b2767447ba31a7bdf71d;p=thirdparty%2Fbind9.git doth test: use extended reg. expression to check for HTTP/2 support Using extended regular expressions to check for HTTP/2 support in curl appears to be a more portable option, which also works on e.g. OpenBSD. --- diff --git a/bin/tests/system/doth/tests.sh b/bin/tests/system/doth/tests.sh index e9bcb894057..5e5c9b0f0eb 100644 --- a/bin/tests/system/doth/tests.sh +++ b/bin/tests/system/doth/tests.sh @@ -551,7 +551,7 @@ status=$((status + ret)) # check whether we can use curl for sending test queries. if [ -x "${CURL}" ] ; then - CURL_HTTP2="$(${CURL} --version | grep '^Features:.* HTTP2\( \|$\)')" + CURL_HTTP2="$(${CURL} --version | grep -E '^Features:.* HTTP2( |$)')" if [ -n "$CURL_HTTP2" ]; then testcurl=1