]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
ignore dig's result when expecting 'connection timed out'
authorMark Andrews <marka@isc.org>
Thu, 12 Feb 2015 02:44:30 +0000 (13:44 +1100)
committerMark Andrews <marka@isc.org>
Thu, 12 Feb 2015 02:45:04 +0000 (13:45 +1100)
(cherry picked from commit 82c6bce26a6483ce0c1b689875b7ab0615e7acf3)

bin/tests/system/legacy/tests.sh

index b6f3b0b05029d7c3e963fac43daa54c56b21ba5f..b9e2ccdb928ddb53ca33ae58a3eec17661b42137 100755 (executable)
@@ -158,7 +158,7 @@ then
     n=`expr $n + 1`
     echo "I:checking recursive lookup to edns 512 + no tcp + trust anchor fails ($n)"
     ret=0
-    $DIG +tcp  @10.53.0.1 -p 5300 edns512-notcp soa > dig.out.test$n || ret=1
+    $DIG +tcp  @10.53.0.1 -p 5300 edns512-notcp soa > dig.out.test$n
     grep "status: SERVFAIL" dig.out.test$n > /dev/null ||
         grep "connection timed out;" dig.out.test$n > /dev/null || ret=1
     if [ $ret != 0 ]; then echo "I:failed"; fi