From: Michal Nowak Date: Tue, 18 Mar 2025 15:00:53 +0000 (+0100) Subject: Fix failing grep invocation on OpenBSD X-Git-Tag: v9.21.7~43^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=00584d6f290ead920f377b96f8c91a9286280bb4;p=thirdparty%2Fbind9.git Fix failing grep invocation on OpenBSD Lines starting with A or NSEC are expected but not matched with the OpenBSD grep. Extended regular expressions with direct use of parentheses and the pipe symbol is more appropriate. I:checking RRSIG query from cache (154) I:failed --- diff --git a/bin/tests/system/dnssec/tests.sh b/bin/tests/system/dnssec/tests.sh index 09c8be1250b..86167339427 100644 --- a/bin/tests/system/dnssec/tests.sh +++ b/bin/tests/system/dnssec/tests.sh @@ -2191,7 +2191,7 @@ echo_i "checking RRSIG query from cache ($n)" ret=0 dig_with_opts normalthenrrsig.secure.example. @10.53.0.4 a >/dev/null || ret=1 ans=$(dig_with_opts +short normalthenrrsig.secure.example. @10.53.0.4 rrsig) || ret=1 -expect=$(dig_with_opts +short normalthenrrsig.secure.example. @10.53.0.3 rrsig | grep '^\(A\|NSEC\)') || ret=1 +expect=$(dig_with_opts +short normalthenrrsig.secure.example. @10.53.0.3 rrsig | grep -E '^(A|NSEC)') || ret=1 test "$ans" = "$expect" || ret=1 # also check that RA is set dig_with_opts normalthenrrsig.secure.example. @10.53.0.4 rrsig >dig.out.ns4.test$n || ret=1