mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-27 20:25:55 -04:00
[9.20] fix: test: Check exit status of dig and nsupdate in nsupdate system test
Add missing failure checks to six dig and nsupdate invocations in nsupdate system test so that command failures are properly caught instead of silently ignored. Backport of MR !11811 Merge branch 'backport-marka/check-return-codes-in-nsupdate-test-9.20' into 'bind-9.20' See merge request isc-projects/bind9!11813
This commit is contained in:
commit
60288be50f
1 changed files with 6 additions and 6 deletions
|
|
@ -734,7 +734,7 @@ END
|
|||
grep REFUSED nsupdate.out.$n >/dev/null 2>&1 || ret=1
|
||||
$DIG $DIGOPTS @10.53.0.6 \
|
||||
+tcp +noadd +nosea +nostat +noquest +nocomm +nocmd \
|
||||
-x 127.0.0.1 >dig.out.ns6.$n
|
||||
-x 127.0.0.1 >dig.out.ns6.$n || ret=1
|
||||
grep localhost. dig.out.ns6.$n >/dev/null 2>&1 && ret=1
|
||||
if test $ret -ne 0; then
|
||||
echo_i "failed"
|
||||
|
|
@ -772,7 +772,7 @@ END
|
|||
grep REFUSED nsupdate.out.$n >/dev/null 2>&1 || ret=1
|
||||
$DIG $DIGOPTS @10.53.0.6 \
|
||||
+tcp +noadd +nosea +nostat +noquest +nocomm +nocmd \
|
||||
-x 192.168.0.1 >dig.out.ns6.$n
|
||||
-x 192.168.0.1 >dig.out.ns6.$n || ret=1
|
||||
grep localhost. dig.out.ns6.$n >/dev/null 2>&1 && ret=1
|
||||
if test $ret -ne 0; then
|
||||
echo_i "failed"
|
||||
|
|
@ -793,7 +793,7 @@ END
|
|||
grep REFUSED nsupdate.out.$n >/dev/null 2>&1 || ret=1
|
||||
$DIG $DIGOPTS @10.53.0.6 \
|
||||
+tcp +noadd +nosea +nostat +noquest +nocomm +nocmd \
|
||||
$REVERSE_NAME NS >dig.out.ns6.$n
|
||||
$REVERSE_NAME NS >dig.out.ns6.$n || ret=1
|
||||
grep localhost. dig.out.ns6.$n >/dev/null 2>&1 && ret=1
|
||||
if test $ret -ne 0; then
|
||||
echo_i "failed"
|
||||
|
|
@ -835,7 +835,7 @@ END
|
|||
grep REFUSED nsupdate.out.$n >/dev/null 2>&1 || ret=1
|
||||
$DIG $DIGOPTS @fd92:7065:b8e:ffff::6 \
|
||||
+tcp +noadd +nosea +nostat +noquest +nocomm +nocmd \
|
||||
$REVERSE_NAME NS >dig.out.ns6.$n
|
||||
$REVERSE_NAME NS >dig.out.ns6.$n || ret=1
|
||||
grep localhost. dig.out.ns6.$n >/dev/null 2>&1 && ret=1
|
||||
if test $ret -ne 0; then
|
||||
echo_i "failed"
|
||||
|
|
@ -1858,7 +1858,7 @@ n=$((n + 1))
|
|||
ret=0
|
||||
echo_i "check that max records is enforced ($n)"
|
||||
nextpart ns6/named.run >/dev/null
|
||||
$NSUPDATE -v >nsupdate.out.$n 2>&1 <<END
|
||||
$NSUPDATE -v >nsupdate.out.$n 2>&1 <<END || ret=1
|
||||
server 10.53.0.6 ${PORT}
|
||||
local 10.53.0.5
|
||||
update del 5.0.53.10.in-addr.arpa.
|
||||
|
|
@ -1884,7 +1884,7 @@ n=$((n + 1))
|
|||
ret=0
|
||||
echo_i "check that max records for ANY is enforced ($n)"
|
||||
nextpart ns6/named.run >/dev/null
|
||||
$NSUPDATE -v >nsupdate.out.$n 2>&1 <<END
|
||||
$NSUPDATE -v >nsupdate.out.$n 2>&1 <<END || ret=1
|
||||
server 10.53.0.6 ${PORT}
|
||||
local 10.53.0.5
|
||||
update del 5.0.53.10.in-addr.arpa.
|
||||
|
|
|
|||
Loading…
Reference in a new issue