From: Mark Andrews Date: Mon, 6 Feb 2023 23:07:17 +0000 (+1100) Subject: Send grep output to /dev/null in nsupdate test X-Git-Tag: v9.19.11~82^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=df7f3c47c6eee6b4450735479ca7d6552693292a;p=thirdparty%2Fbind9.git Send grep output to /dev/null in nsupdate test --- diff --git a/bin/tests/system/nsupdate/tests.sh b/bin/tests/system/nsupdate/tests.sh index d78407229db..c45b2fe3ad6 100755 --- a/bin/tests/system/nsupdate/tests.sh +++ b/bin/tests/system/nsupdate/tests.sh @@ -452,7 +452,7 @@ sleep 5 n=$((n + 1)) echo_i "check to 'out of sync' message ($n)" -if grep "out of sync" ns2/named.run +if grep "out of sync" ns2/named.run > /dev/null then echo_i "failed (found 'out of sync')" status=1 @@ -1374,7 +1374,7 @@ grep "attempt to add more records than permitted by policy" nextpart.out.test$n c1=$(awk '$4 == "A" { print }' dig.out.ns6.test$n | wc -l) c2=$(awk '$4 == "AAAA" { print }' dig.out.ns6.test$n | wc -l) test "$c1" -eq 3 -a "$c2" -eq 2 || ret=1 -grep "::ffff:1.2.3.2" dig.out.ns6.test$n && ret=1 +grep "::ffff:1.2.3.2" dig.out.ns6.test$n > /dev/null && ret=1 if test $ret -ne 0 then echo_i "failed"; status=1 @@ -1525,7 +1525,7 @@ update add _dns.ns.relaxed 0 in SVCB 1 ns.relaxed dohpath=/{?dns} send END $DIG $DIGOPTS +tcp @10.53.0.3 _dns.ns.relaxed SVCB > dig.out.ns3.test$n -grep '1 ns.relaxed. key7="/{?dns}"' dig.out.ns3.test$n || ret=1 +grep '1 ns.relaxed. key7="/{?dns}"' dig.out.ns3.test$n > /dev/null || ret=1 [ $ret = 0 ] || { echo_i "failed"; status=1; } n=$((n + 1)) @@ -1555,7 +1555,7 @@ update add _dns.ns.relaxed 0 in SVCB 1 ns.relaxed alpn=h2 send END $DIG $DIGOPTS +tcp @10.53.0.3 _dns.ns.relaxed SVCB > dig.out.ns3.test$n -grep '1 ns.relaxed. alpn="h2"' dig.out.ns3.test$n || ret=1 +grep '1 ns.relaxed. alpn="h2"' dig.out.ns3.test$n > /dev/null || ret=1 [ $ret = 0 ] || { echo_i "failed"; status=1; } n=$((n + 1))