]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Silence two grep calls
authorMatthijs Mekking <matthijs@isc.org>
Thu, 27 Aug 2020 12:14:57 +0000 (14:14 +0200)
committerMatthijs Mekking <matthijs@isc.org>
Wed, 2 Sep 2020 09:59:49 +0000 (11:59 +0200)
bin/tests/system/kasp/tests.sh

index 1110d132c8861aa70bf8c3ef354dce8fc59c3e48..cd045b0a9734566616f1f3ff98bb6af23254c3d3 100644 (file)
@@ -1549,14 +1549,14 @@ basefile=$(key_get KEY1 BASEFILE)
 n=$((n+1))
 echo_i "checkds publish correctly sets DSPublish for zone $ZONE ($n)"
 rndc_checkds "$SERVER" "$DIR" "-" "20190102121314" "published" "$ZONE"
-grep "DSPublish: 20190102121314" "${basefile}.state" || log_error "DSPublish not set in ${basefile}"
+grep "DSPublish: 20190102121314" "${basefile}.state" > /dev/null || log_error "DSPublish not set in ${basefile}"
 test "$ret" -eq 0 || echo_i "failed"
 status=$((status+ret))
 
 n=$((n+1))
 echo_i "checkds withdraw correctly sets DSRemoved for zone $ZONE ($n)"
 rndc_checkds "$SERVER" "$DIR" "-" "20200102121314" "withdrawn" "$ZONE"
-grep "DSRemoved: 20200102121314" "${basefile}.state" || log_error "DSRemoved not set in ${basefile}"
+grep "DSRemoved: 20200102121314" "${basefile}.state" > /dev/null || log_error "DSRemoved not set in ${basefile}"
 test "$ret" -eq 0 || echo_i "failed"
 status=$((status+ret))