From 82c6bce26a6483ce0c1b689875b7ab0615e7acf3 Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Thu, 12 Feb 2015 13:44:30 +1100 Subject: [PATCH] ignore dig's result when expecting 'connection timed out' --- bin/tests/system/legacy/tests.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/tests/system/legacy/tests.sh b/bin/tests/system/legacy/tests.sh index b6f3b0b050..b9e2ccdb92 100755 --- a/bin/tests/system/legacy/tests.sh +++ b/bin/tests/system/legacy/tests.sh @@ -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