]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Handle dig timing out gracefully in upforwd
authorTom Krizek <tkrizek@isc.org>
Fri, 5 Jan 2024 14:14:26 +0000 (15:14 +0100)
committerTom Krizek <tkrizek@isc.org>
Tue, 9 Jan 2024 12:43:27 +0000 (13:43 +0100)
(cherry picked from commit 7b77574b6df1d353cb229502a38955f92ce8b90f)

bin/tests/system/upforwd/tests.sh

index 3c9cfe2c98331d98d0c59bb03c2843d640e2c8d6..9165ba9e32389494b795f429af64e3cd34758330 100644 (file)
@@ -273,7 +273,7 @@ if test -f keyname; then
        update add unsigned.example2. 600 TXT Foo
        send
 EOF
-  $DIG -p ${PORT} unsigned.example2 A @10.53.0.1 >dig.out.ns1.test$n
+  $DIG -p ${PORT} unsigned.example2 A @10.53.0.1 >dig.out.ns1.test$n || ret=1
   grep "status: NOERROR" dig.out.ns1.test$n >/dev/null || ret=1
   if [ $ret != 0 ]; then echo_i "failed"; fi
   status=$(expr $status + $ret)