From: Tom Krizek Date: Mon, 19 Jun 2023 15:09:04 +0000 (+0200) Subject: Handle non-zero return codes in acl test X-Git-Tag: v9.19.16~45^2~11 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1e64749ed3c7868a2a55047d80cbc78b1af952f5;p=thirdparty%2Fbind9.git Handle non-zero return codes in acl test --- diff --git a/bin/tests/system/acl/tests.sh b/bin/tests/system/acl/tests.sh index fd485bc8bdd..57530360263 100644 --- a/bin/tests/system/acl/tests.sh +++ b/bin/tests/system/acl/tests.sh @@ -154,14 +154,14 @@ $DIG -p ${PORT} +tcp soa example. \ @10.53.0.2 -b 10.53.0.3 > dig.out.1.${t} grep "status: NOERROR" dig.out.1.${t} > /dev/null 2>&1 || ret=1 $DIG -p ${PORT} +tcp soa example. \ - @10.53.0.2 -b 10.53.0.8 > dig.out.2.${t} + @10.53.0.2 -b 10.53.0.8 > dig.out.2.${t} && ret=1 grep "status: NOERROR" dig.out.2.${t} > /dev/null 2>&1 && ret=1 grep "communications error" dig.out.2.${t} > /dev/null 2>&1 || ret=1 $DIG -p ${PORT} soa example. \ @10.53.0.2 -b 10.53.0.3 > dig.out.3.${t} grep "status: NOERROR" dig.out.3.${t} > /dev/null 2>&1 || ret=1 $DIG -p ${PORT} soa example. \ - @10.53.0.2 -b 10.53.0.8 > dig.out.4.${t} + @10.53.0.2 -b 10.53.0.8 > dig.out.4.${t} && ret=1 grep "status: NOERROR" dig.out.4.${t} > /dev/null 2>&1 && ret=1 grep "timed out" dig.out.4.${t} > /dev/null 2>&1 || ret=1 grep ";; no servers could be reached" dig.out.4.${t} > /dev/null 2>&1 || ret=1