]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Fix digdelv test error
authorEvan Hunt <each@isc.org>
Sun, 17 Oct 2021 18:45:21 +0000 (11:45 -0700)
committerEvan Hunt <each@isc.org>
Wed, 27 Oct 2021 19:08:12 +0000 (12:08 -0700)
The digdelv system test has a test case in which stderr was
included in the dig output. When trace logging was in use,
this confused the grep and caused a spurious test failure.

(cherry picked from commit 21431206366e5c4f019f82e4e9b8e6963d3919a9)

bin/tests/system/digdelv/tests.sh

index d57744d1ecc4ab885dad304f14c6372fbfa96dfb..22933c7f9d36a5e3114e9a51842dcf594d82d340 100644 (file)
@@ -1076,7 +1076,7 @@ if [ -x "$MDIG" ] ; then
     n=$((n+1))
     echo_i "check mdig +yaml output ($n)"
     ret=0
-    mdig_with_opts +yaml @10.53.0.3 -t any ns2.example > dig.out.test$n 2>&1 || ret=1
+    mdig_with_opts +yaml @10.53.0.3 -t any ns2.example > dig.out.test$n || ret=1
     value=$($PYTHON yamlget.py dig.out.test$n 0 message response_message_data status || ret=1)
     [ "$value" = "NOERROR" ] || ret=1
     value=$($PYTHON yamlget.py dig.out.test$n 0 message response_message_data QUESTION_SECTION 0 || ret=1)
@@ -1326,7 +1326,7 @@ if [ -x "$DELV" ] ; then
     n=$((n+1))
     echo_i "check delv +yaml output ($n)"
     ret=0
-    delv_with_opts +yaml @10.53.0.3 any ns2.example > delv.out.test$n 2>&1 || ret=1
+    delv_with_opts +yaml @10.53.0.3 any ns2.example > delv.out.test$n || ret=1
     value=$($PYTHON yamlget.py delv.out.test$n status || ret=1)
     [ "$value" = "success" ] || ret=1
     value=$($PYTHON yamlget.py delv.out.test$n query_name || ret=1)