]> git.ipfire.org Git - thirdparty/bind9.git/commit
Update nsupdate test
authorMatthijs Mekking <matthijs@isc.org>
Fri, 30 Apr 2021 09:03:46 +0000 (11:03 +0200)
committerMatthijs Mekking <matthijs@isc.org>
Fri, 30 Apr 2021 12:28:30 +0000 (14:28 +0200)
commitfd01889b8aedcb1b6ec84ee96090242df81dfb6e
tree511638fe342691329d33bd3c87297f6ccf44cb1a
parent75277fc825eb088de5b8e8bacf2ce799777aae8a
Update nsupdate test

The nsupdate system test did not record failures from the
'update_test.pl' Perl script. This was because the 'ret' value was
not being saved outside the '{ $PERL ... || ret=1 } cat_i' scope.

Change this piece to store the output in a separate file and then
cat its contents. Now the 'ret' value is being saved.

Also record failures in 'update_test.pl' if sending the update
failed.

Add missing 'n' incrementals to 'nsupdate/test.sh' to keep track of
test numbers.

(cherry picked from commit 5b31811b5f15c7677a3f1a65b8dcc23d4a55f3d4)
bin/tests/system/nsupdate/clean.sh
bin/tests/system/nsupdate/tests.sh
bin/tests/system/nsupdate/update_test.pl