2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 05:57:52 +00:00

Handle non-zero return codes unknown test

This commit is contained in:
Tom Krizek 2023-06-19 16:24:49 +02:00
parent 86765ad1d3
commit f3310e1731
No known key found for this signature in database
GPG Key ID: 01623B9B652A20A7

View File

@ -226,7 +226,7 @@ status=$((status + ret))
n=$((n+1))
echo_i "check that 'TYPE353 \# cat' produces 'not a valid number' ($n)"
ret=0
$CHECKZONE nan.bad zones/nan.bad > check.out 2>&1
$CHECKZONE nan.bad zones/nan.bad > check.out 2>&1 && ret=1
grep "not a valid number" check.out > /dev/null || ret=1
[ $ret = 0 ] || echo_i "failed"
status=$((status + ret))