From 6d0f19da7d582acd0163793e34dfa34fab8c2abb Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Fri, 28 Jul 2023 05:22:43 +1000 Subject: [PATCH] Correctly grep nextpart output --- bin/tests/system/nsupdate/tests.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/tests/system/nsupdate/tests.sh b/bin/tests/system/nsupdate/tests.sh index 04d533b8f1..8c2c717437 100755 --- a/bin/tests/system/nsupdate/tests.sh +++ b/bin/tests/system/nsupdate/tests.sh @@ -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))