]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Correctly grep nextpart output
authorMark Andrews <marka@isc.org>
Thu, 27 Jul 2023 19:22:43 +0000 (05:22 +1000)
committerMark Andrews <marka@isc.org>
Tue, 1 Aug 2023 23:47:55 +0000 (23:47 +0000)
bin/tests/system/nsupdate/tests.sh

index 04d533b8f1e1d7b701cba40907d8aa59bff0cc78..8c2c7174370fcdbdfa2bfca981d9ecaf8794cb06 100755 (executable)
@@ -1684,7 +1684,7 @@ send
 END
 grep 'status: REFUSED' nsupdate.out.test$n > /dev/null || ret=1
 msg="update failed: _dns.ns.example/SVCB: no ALPN (REFUSED)"
-nextpart ns3/named.run | grep "$msg" ns3/named.run > /dev/null || ret=1
+nextpart ns3/named.run | grep "$msg" > /dev/null || ret=1
 [ $ret = 0 ] || { echo_i "failed"; status=1; }
 
 n=$((n + 1))
@@ -1714,7 +1714,7 @@ send
 END
 grep 'status: REFUSED' nsupdate.out.test$n > /dev/null || ret=1
 msg="update failed: _dns.ns.example/SVCB: no DOHPATH (REFUSED)"
-nextpart ns3/named.run | grep "$msg" ns3/named.run > /dev/null || ret=1
+nextpart ns3/named.run | grep "$msg" > /dev/null || ret=1
 [ $ret = 0 ] || { echo_i "failed"; status=1; }
 
 n=$((n + 1))