]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Handle non-zero return codes in legacy test
authorTom Krizek <tkrizek@isc.org>
Mon, 19 Jun 2023 09:03:51 +0000 (11:03 +0200)
committerTom Krizek <tkrizek@isc.org>
Fri, 14 Jul 2023 13:49:15 +0000 (15:49 +0200)
bin/tests/system/legacy/tests.sh

index 3660ecdbedb8f4b08120564edd26174a4d1012a2..af1167352b4b10aaef75074a9f5d361394d63b7a 100755 (executable)
@@ -175,7 +175,7 @@ ret=0
 $DIG $DIGOPTS +edns @10.53.0.5 plain-notcp soa > dig.out.1.test$n || ret=1
 grep "status: NOERROR" dig.out.1.test$n > /dev/null || ret=1
 grep "EDNS: version:" dig.out.1.test$n > /dev/null && ret=1
-$DIG $DIGOPTS +edns +tcp @10.53.0.5 plain-notcp soa > dig.out.2.test$n
+$DIG $DIGOPTS +edns +tcp @10.53.0.5 plain-notcp soa > dig.out.2.test$n && ret=1
 grep "connection refused" dig.out.2.test$n > /dev/null || ret=1
 if [ $ret != 0 ]; then echo_i "failed"; fi
 status=$((status + ret))