]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Handle non-zero return codes in dnstap test
authorTom Krizek <tkrizek@isc.org>
Thu, 22 Jun 2023 16:08:03 +0000 (18:08 +0200)
committerTom Krizek <tkrizek@isc.org>
Fri, 14 Jul 2023 13:49:17 +0000 (15:49 +0200)
bin/tests/system/dnstap/tests.sh

index c7965445d02e152b12a52175cdf5ad8a3846d52f..75bfbfcc92e9a9102c54633481578f25c32d624c 100644 (file)
@@ -554,7 +554,7 @@ if [ -n "$FSTRM_CAPTURE" ] ; then
        $DIG $DIGOPTS @10.53.0.4 a.example > dig.out
 
        # send an UPDATE to ns4
-       $NSUPDATE <<- EOF > nsupdate.out 2>&1
+       $NSUPDATE <<- EOF > nsupdate.out 2>&1 && ret=1
        server 10.53.0.4 ${PORT}
        zone example
        update add b.example 3600 in a 10.10.10.10
@@ -806,7 +806,7 @@ _test_dnstap_roll() (
 
     $RNDCCMD -s "${ip}" dnstap -roll "${n}" | sed "s/^/${ns} /" | cat_i &&
     files=$(find "$ns" -name "dnstap.out.[0-9]" | wc -l) &&
-    test "$files" -eq "${n}" && test "$files" -ge "1"
+    test "$files" -eq "${n}" && test "$files" -ge "1" || return 1
 )