]> 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>
Mon, 8 Jan 2024 16:03:36 +0000 (17:03 +0100)
bin/tests/system/upforwd/tests.sh

index efb73e0aff87382c2cd8165b81ab925e13e76ef7..6c8e40b5a9bee7f363cf2163a73d0f2e56b9489c 100644 (file)
@@ -404,7 +404,7 @@ EOF
   n=$((n + 1))
   wait_for_log_thrice
 
-  $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=$((status + ret))
@@ -439,7 +439,7 @@ EOF
   n=$((n + 1))
   wait_for_log_thrice
 
-  $DIG -p ${PORT} unsigned-dot.example2 A @10.53.0.1 >dig.out.ns1.test$n
+  $DIG -p ${PORT} unsigned-dot.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=$((status + ret))